Function
stringify
stringify(amount: AnyAssetAmount, removeTrailingZeroes?: boolean): stringTo 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.
Parameters
- amount: AnyAssetAmount
the amount to format
- removeTrailingZeroes: boolean = true
if true, trailing zeroes will be removed (0.800 -> 0.8). Defaults to true.
Returns string
- amount: AnyAssetAmount