1156
General Discussion / Re: How do I Trade from the Console?
« on: March 13, 2015, 08:32:40 pm »Speaking of "rounding issues" is there a technical reason why the Bitshares devs decided to go with 5 decimal places of precision and not 8 as is far more common with crypto-currency?
Yes. The "double" data type commonly used in many programming languages has 52 bits of precision. I. e. it can represent 2^52 different numbers with the same exponent. That's slightly more than 10^15, so it is precise on 15 decimals.
The numerical maximum number of bitshares supported by the client is 10 billion (there are other limits in place, so the actual maximum is lower than that), that's 10^10. With 5 decimal places that's also 10^15 different values. In other words, with more than 5 decimals a "double" would not have sufficient precision to represent every possible amount of BTS.