Re:What's the right way to handle monetary values in code?
by cperciva on Thursday March 24, 2011 @06:34PM
(#2366310)
In Tarsnap I use a pair of 64-bit values, one for dollars and one for attodollars. I figure I don't mind losing a few attodollars to rounding, and I'm unlikely to ever have revenue exceeding 2^64 dollars.
[ Parent
| on HN ]
There are no comments on this comment yet.