evm_min

Returns the minimum of two UINT256 values.

Example

Local

1
SELECT evm_min(9::UINT256, 4::UINT256)::VARCHAR AS result;
2
-- => [{"result":"4"}]
Notebook ready in readonly mode.

API reference

Exact signatures with descriptions, requirements, inputs, returns, and examples.

evm_min(UINT256, UINT256) #

Returns the smaller of two UINT256 values.

Inputs

Name Type Use
a UINT256

First UINT256 value.

required positional
b UINT256

Second UINT256 value.

required positional

Returns

Name Type
min UINT256

Smaller value. The smaller UINT256 input; NULL when either input is NULL.

Related functions

Category and tags

Category
EVM utilities
Tag
Types
Tag
EVM