[BUG][POSSIBLE FIXES]
Dan Ingalls
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
>answer was
>
>blablabla.xy9999999999999999999999999999999999999999999999...
Andres -
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.
- Dan
More information about the Squeak-dev
mailing list
|