Skip to content

@floor

Evaluate exact rational arithmetic, round the final result toward negative infinity, and check its 256-bit integer range.

Returns: number

@floor(...tokens)
NameTypeDescription
[...tokens]anyArithmetic expression (e.g. $a + $b * 2)

Evaluate an arbitrary-precision rational expression, then round its final result toward negative infinity. Positive results must fit uint256 and negative results int256. Intermediate values are unbounded. Nested helpers introduce separate rounding boundaries. This helper has no on-chain face; use calcFloor! or calcCeil! for supported checked integer quotient expressions.