Open arekstryjski opened 6 years ago
I have the same problem with formatNumber function. If the precision is 8 (which most cryptocurrency exchanges use), it show a weird number 1 at the end
I encourage you to use a small lib I built (initially for myself) to handle price formatting in a predictable way: number-currency-format. It is handling the case you mentioned above well (without the dangling one at the end).
I think there is a bug related to formatMoney and precision:
result in
Such a big precision is needed for Bitcoin and possible other cryptocurrencies.