evm_sqrt
Returns the floor integer square root of a UINT256 value using overflow-safe Newton iteration. Defined for the full UINT256 range. NULL input propagates to NULL.
Example
Local
{"id":"sample_zd8ndi","title":"Sample","code":"SELECT evm_sqrt(10::UINT256)::VARCHAR AS result;\n-- => [{\"result\":\"3\"}]"}
Notebook ready in readonly mode.
API reference
Exact signatures with descriptions, requirements, inputs, returns, and examples.
Related functions
Category and tags
- Category
- EVM utilities
- Tag
- Types
- Tag
- EVM