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

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


> Example (0.995 round: 2) -> 1.00 though 0.995 < (995/1000) so it
> should round to 0.99.

.. and I just noticed that

	0.995 printShowingDecimalPlaces: 2   ==>  '1.00'

Do we have a method returning the correct value ?

Stef


More information about the Squeak-dev mailing list