Sept. 17, 2011
1:06 p.m.
Probably because Floats are not exact, so the result of #asScaledDecimal: when sent to a Float, differs from what the compiler produces when it parses 0.1s2. -- Cheers, Peter. On 17 sep 2011, at 15:01, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
Why (0.1 asScaledDecimal: 2) + (0.2 asScaledDecimal: 2) = (0.3 asScaledDecimal: 2) returns false
while
0.1s2 + 0.2s2 = 0.3s2 returns true
?