Loading

evm_max

Scalar function

Returns the maximum of two UINT256 values. Equivalent to DuckDB's greatest() but with explicit EVM naming.

evm_max(UINT256, UINT256)

Parameters

Name Type
a UINT256
b UINT256

Returns

Name Type
max UINT256
1
SELECT evm_max(price_a, price_b) AS higher_price;
Notebook ready in readonly mode.