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

> There are pretty trivial ways to use binary floating point values that don't result in 0.1 + 0.2 producing 0.30000...4

Not across all architectures and operating systems there are not

Listen to those who have done this. Use integers for finance.



Yes across all architectures and OS's that use IEEE 754 floating points.




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

Search: