[squeak-dev] Re: The joys (or not) of floating point numbers

Stéphane Rollandin lecteur at zogotounga.net
Tue Mar 26 17:28:19 UTC 2013


> It's still not perfect because it cumulates two inexact operations:
> - one inexact operation in the multiplication pten * self
> - one inexact operation in the division / pten
>
> Example (0.995 round: 2) -> 1.00 though 0.995 < (995/1000) so it
> should round to 0.99.

Thanks. This stuff is really tricky !

Stef



More information about the Squeak-dev mailing list