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
Local
{"id":"sample_ou97ex","title":"Sample","code":"SELECT evm_sign((-42)::INT256) AS result;\n-- => [{\"result\":-1}]"}
Notebook ready in readonly mode.
API reference
Exact signatures with descriptions, requirements, inputs, returns, and examples.
Category and tags
- Category
- EVM utilities
- Tag
- Types
- Tag
- EVM