| ▲ | KellyCriterion 7 hours ago | ||||||||||||||||
Do not throw away any precision in finance/money computation, regardless what/ how you are doing it. In C# e.g., there is type decimal for those computations. | |||||||||||||||||
| ▲ | lxgr 7 hours ago | parent [-] | ||||||||||||||||
You'll definitely have to throw it away at some point. The art is in making those points well-defined and rare enough to not cause large discrepancies, but frequent enough to avoid ballooning arbitrary-precision numbers across databases and services that might not be able to handle them. | |||||||||||||||||
| |||||||||||||||||