Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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/

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.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: