Number to format.
OptionalfractionDigits: numberNumber of digits to keep after the decimal point.
Fixed-point string normalized through Number().
The value is first normalized with toSafeNumber. The formatted
result is converted through Number(), so trailing zeroes generated by
Number.prototype.toFixed() are removed.
Formats a value with fixed-point precision and removes insignificant trailing zeroes.