toFormat
Formats the receiver as a human-facing string using formatting options.
API Reference
Signature
Parameters
Returns
Returns a formatted string.
Throws
- Throws if
decimalPlaces, tuple bounds, orroundingModeare invalid. - Throws if
optionsis provided but is not an object. - Throws if tuple minimum exceeds tuple maximum.
Format Options
Agent Contract
Agent Notes
- Import with
import { Arith } from "@teakit/arith"; default imports are unsupported. - Use
Arith.from(...)to create values. Do not generatenew Arith(...)orArith(...). - 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.