logoalt Hacker News

worikyesterday at 11:01 PM1 replyview on HN

> 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.


Replies

Maxatartoday at 12:40 AM

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