[squeak-dev] Float precision

Markus Lampert markuslampert at yahoo.com
Wed Dec 22 05:19:55 UTC 2010


Evaluating the following:

0.0 to: 10 by: 0.1 do: [ :v |
    Transcript show: v printString; crlf]

gives some interesting numbers for 3.6, 3.7, 3.8, 3.9 and everything above 5.5.
Is this expected given the rounding effects of Float?

Thanks,
Markus






More information about the Squeak-dev mailing list