evm_max

Returns the maximum of two UINT256 values.

Scalar function TypesEVM

Example

Runs locally

SELECT evm_max(9::UINT256, 14::UINT256)::VARCHAR AS result;
-- => [{"result":"14"}]

API reference

evm_max(UINT256, UINT256) #

Returns the larger 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
max UINT256

Larger value. The larger UINT256 input; NULL when either input is NULL.