valueOf
Returns a string representation intended for primitive conversion.
Summary
Use explicit output methods instead of relying on coercion; valueOf is mainly for JavaScript integration.
AI Contract
Signature
Parameters
Returns
Returns a string.
Behavior
- Returns a base-10 string.
- Includes the sign for negative zero.
- Does not accept a base argument.
Examples
Errors
- Does not take user arguments; no argument validation is performed.
Agent Notes
- 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.