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
Runs locally
{"id":"sample_zd8ndi","title":"Sample"}
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.
Runs locally
SELECT evm_sqrt(10::UINT256)::VARCHAR AS result;
-- => [{"result":"3"}]