Questions tagged [precision]
The precision tag has no usage guidance.
2
questions
2
votes
1answer
2k views
Rounding in BTC exchanges
Does anyone know whether exchanges usually round values or truncate them instead?
Different exchanges support different resolutions for prices and amounts. For instance, BTC China supports 2 ...
5
votes
1answer
685 views
Prevent rounding errors when displaying bitcoin values in javascript
What is the correct way to prevent Floating Point Precision errors when displaying bitcon values in javascript? I've seen many answers on the topic, but they all seem to have their drawbacks.
Here's ...