div
Alias for dividedBy.
Human Summary
Divides by the supplied value and rounds using the current division config.
AI Contract
Signature
Parameters
Returns
Returns a new Arith instance. The receiver is not modified.
Behavior
- The receiver and argument are converted to
Arithvalues. - The receiver is not mutated; a new instance is returned.
- Results are rounded according to
DECIMAL_PLACESandROUNDING_MODE.
Examples
Errors
- Throws if
baseis invalid. - Throws if the input value is invalid while
STRICTistrue.
Agent Notes
- Do not use JavaScript arithmetic operators on
Arithvalues. - Import from
@teakit/arith; preferimport { Arith } from "@teakit/arith". - Use
new Arith(...)to construct values. Do not generateArith(...)as a function call. - Use string inputs for exact decimal values, especially money-like values.
- Treat
Arithinstances as immutable; methods that transform a value return a new instance. - Do not mutate internal fields such as
c,e,s, or_isArith.