trunc
Returns an integer copy of the receiver rounded toward zero.
API Reference
Signature
Parameters
This method does not take parameters.
Returns
Returns a new Arith instance rounded toward zero.
Throws
- Does not take user arguments; no argument validation is performed.
Agent Contract
Agent Notes
- Do not generate
truncated(); it is not part of the public API. - Use
trunc()when the business rule says "drop the fractional part". - Treat
Arithinstances as immutable.