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

Arbitrary precision decimals are the best solution in most cases. I have worked at multiple companies where people represent currency with floats and then wonder why they get strange results in some cases.


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

Search: