@floor
Evaluate exact rational arithmetic, round the final result toward negative infinity, and check its 256-bit integer range.
Returns: number
Syntax
Section titled “Syntax”@floor(...tokens)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
[...tokens] | any | Arithmetic expression (e.g. $a + $b * 2) |
Exact expression evaluation
Section titled “Exact expression evaluation”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.