2 ms·
If you are only doing accounting (and not like high frequency trading), you can even consider using arbitrary precision rational numbers internally. They are m
by eru 2y ago
If you are only doing accounting (and not like high frequency trading), you can even consider using arbitrary precision rational numbers internally. They are most likely fast enough.
However, similar to what you suggested about currency conversion, your business logic might already dictate to you exactly what kind of precision and rounding rules you should be using; and deviating from that might cause havoc.