News for hackers. Stuff that matters.
Re:0.30000000000000004 by masklinn on Monday December 02, 2019 @03:58PM (#21686850)
> Makes me wonder why we haven't switched to a better floating point model in the last decades. It will probably be slower but a lot of problems could be avoided.

Pretty much all languages have some sort of decimal number. Few or none have made it the default because they're ignominiously slower than binary floating-point. To the extent that even languages which have made arbitrary precision integers their default firmly keep to binary floating-point.

Re:0.30000000000000004 by amyjess on Monday December 02, 2019 @04:08PM (#21686957)
> Few or none have made it the default because they're ignominiously slower than binary floating-point.

You can strike the "none". Perl 6 uses rationals (Rat) by default, someone once told me Haskell does the same, and Groovy uses BigDecimal.