Dan.Ingalls at disney.com
Thu Oct 7 03:14:35 UTC 1999
Andres Valloud <sqrmax at cvtci.com.ar> wrote...
>I also remember that for some floats, if you sent #roundTo: 0.01, the
This would be a more useful report if it included an example of the problem.
As a check on whether this happens in many cases, I evaluated...
(1 to: 100000) select: [:i | (Float pi*i roundTo: 0.01) printString size > 9]
and got back an empty array. It doesn't prove anything, but it's a lot of examples where this doesn't happen. I suppose it is more likely for very large integers.
More information about the Squeak-dev