evm_sign
Returns -1 for a negative two's-complement INT256 value, 0 for zero, and 1 for a positive value. NULL input propagates to NULL.
Example
Runs locally
{"id":"sample_ou97ex","title":"Sample"}
Returns -1 for a negative two's-complement INT256 value, 0 for zero, and 1 for a positive value. NULL input propagates to NULL.
Runs locally
SELECT evm_sign((-42)::INT256) AS result;
-- => [{"result":-1}]