The finite integer value in minor units.
Integer number of decimal places; non-positive values leave n unscaled.
The formatted string.
Positive fractions pads the fractional part to that many digits when the
numeric parts use ordinary decimal notation. Large magnitudes are not expanded
from exponent notation, so their output may not be a conventional fixed-point
decimal. Input precision is limited by JavaScript numbers; formatting cannot
recover digits already lost when representing n.
Formats an integer as a fixed-point decimal string.
Interprets
nas integer minor units and formatsn / 10 ** fractions. Useful for currency amounts stored as cents or other fixed-point values.