The number to format.
Optionaloptions: NumberFormatterOptions = ...Options for formatting.
OptionaldecimalPlaces: number = 0The number of decimal places to use. Defaults to 0.
Optionalprecision: 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.