[squeak-dev] Is there a better implementation of Floats?

Bernd Elkemann elkemann at web.de
Wed Apr 9 14:03:19 UTC 2008


Hi
i am very impressed by squeaks handling of large integers 
(LargePositiveInteger and resulting from that the Fraction-class).
However i was disappointed about the small number of digits of Floats
so my first question is: is there a possibility to increase it?
the second thing is: i found these examples on the squeak newbee group.
1 - 0.2 -0.05 -0.3 -0.1= 0.35  "true"
1 - 0.2 -0.05 -0.3 -0.1 - 0.10= 0.25  "*****false*****"
1 - 0.2 -0.05 -0.3 -0.1 - 0.10= 0.24999999999999995   "true "
and i add the following examples:
0.35 - 0.0 = 0.35 "true"
0.35 - 0.1 = 0.25 "false"
Is there a better implementation of Floats?
thanks in advance!




More information about the Squeak-dev mailing list