Skip to content

formatAmountExact

formatAmountExact(value): string

Defined in: src/format.ts:49

Formats an exact decimal STRING as the record literal: always two decimals, . separator, never a leading +, - only for a genuine negative, half away from zero. The value never passes through a JS number at any point, so float-representation error (e.g. 1.005 * 100 === 100.49999999999999 in IEEE 754) cannot arise at all.

string

string