formatBinaryFixedPoint
Formats a BinaryFixedPoint using a user-supplied
Intl.NumberFormat instance, preserving full precision regardless of
the value's magnitude.
Internally calls binaryFixedPointToBase10 and forwards the
resulting integer to formatter.format using ES2023 string scientific
notation ("<raw>E-<decimals>"). This preserves precision in
fully-compliant runtimes and bypasses the JavaScript number mantissa
limit.
Use this when you want locale-aware output, currency formatting,
grouping separators, or rounding modes from the rich
Intl.NumberFormat API. Prefer binaryFixedPointToString when
portability across older runtimes (older Hermes/React Native, etc.) is
a concern.
Parameters
| Parameter | Type |
|---|---|
formatter | NumberFormat |
value | BinaryFixedPoint<Signedness, number, number> |
Returns
string