Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [precision]

The tag has no usage guidance.

3 votes
3 answers
418 views

What is the numeric precision of Network Difficulty?

My understanding is that Difficulty (aka Network Difficulty) is an approximate representation of the Target, a 256-bit number which is hard to reason about or work with in human-readable Decimal ...
sha2fiddy's user avatar
2 votes
1 answer
3k 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 ...
Juan's user avatar
  • 83
6 votes
1 answer
992 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 ...
r3wt's user avatar
  • 249