round
Returns an integer-rounded copy of the receiver as an Arith value.
API Reference
Signature
Parameters
Returns
Returns a new Arith instance rounded to an integer.
Throws
- Throws if
roundingModeis invalid.
Agent Contract
Agent Notes
- Prefer
round()overintegerValue()when integer rounding is the business intent. - Use
ceil(),floor(), ortrunc()for fixed directional rounding. - Treat
Arithinstances as immutable.