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

Would a "fixed-point binary-coded decimal" type be a solution here? With 64 bit values that gives you 16 digits to play with, which for "everyday numbers" seems like plenty.


IEEE double gives you 15 digits and a much larger dynamic range, so the tradeoff is just not worth it except for specialized applications.




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

Search: