isZero
Return whether the value is zero or negative zero.
Summary
Use it before division or before special-casing empty numeric totals.
AI Contract
Signature
Parameters
Returns
Returns a boolean.
Behavior
- Reads the receiver state without modifying it.
- Does not coerce through JavaScript numbers.
- Works for finite and non-finite Arith values.
Examples
Errors
- Does not take user arguments; no argument validation is performed.
Agent Notes
- Use predicate methods instead of inspecting
c,e, orsdirectly. - 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.