To be used if you want the precise value, down to the last digit. It must return a string, as a Number could still be overflowed and floating point numbers aren't precise in JS.
the amount to format
if true, trailing zeroes will be removed (0.800 -> 0.8). Defaults to true.
The amount as string
To be used if you want the precise value, down to the last digit. It must return a string, as a Number could still be overflowed and floating point numbers aren't precise in JS.