The number to format.
Optional
options: NumberFormatterOptions = ...Options for formatting.
Optional
decimalPlaces: number = 0The number of decimal places to use. Defaults to 0
.
Optional
precision: number = 100The precision to use for the Decimal instance. Defaults to 100
.
The formatted number.
Formats a number into a string representation with optional currency prefix and comma separators.