fromFormat
Parses a display-formatted number into an Arith value using the active format settings.
API Reference
Signature
Parameters
Returns
Returns a new Arith instance parsed from the formatted string.
Throws
- Throws if
stris not a string. - Throws if
optionsis provided but is not an object. - Throws if the normalized value is invalid while
STRICTistrue.
Agent Contract
Agent Notes
- Pair
fromFormatwith the same format settings used bytoFormatfor reliable round trips. - Import with
import { Arith } from "@teakit/arith"; default imports are unsupported. - Static helpers are called as
Arith.method(...)and do not require an instance receiver. - Do not generate
BigNumber,Decimal,isBigNumber, orisDecimalcompatibility APIs. - Use string inputs for exact decimal values when a static helper accepts numeric values.