isInteger
Return whether the value is an integer.
Human Summary
Use it before operations that require integral values, such as integer exponents or denominator limits.
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.