3 ms·
This thread seems to be unaware of DEC64, so this seems as good a place as any to point to this: http://www.dec64.com/ http://www.dec64.com/ The gist: It's eff
by tbabb 7y ago
This thread seems to be unaware of DEC64, so this seems as good a place as any to point to this: http://www.dec64.com/ http://www.dec64.com/
The gist: It's efficient (adds and mults in a few instructions), and preserves the decimal representation.
It's quite simple, really: Store a whole-number integer with a smaller one representing the number of shifts to the decimal point. This is probably a good choice for sensitive financial calculations.
- jglathe 7y agoThank you for this link. Sounds interesting and looks like a lesson learned from history.