Note that inspecting her expression does work, it is the debugging that fails (I am not sure why you would want to that).
Pharo does answer whole numbers from scientific notation if it can (try 1e6 for example), I think that is cool (maintaining maximum precision). You can always do #asFloat if you want. So the calculation is correct 1 - 1e-6 or 1 - 1/1000000 which equals 999999/1000000 On 01 Aug 2014, at 15:40, Serge Stinckwich <[email protected]> wrote: > Yes, I see also the same problem. > > I didn't realize until now that : 1-1e-6 > is printed as a fraction (try print-it): > (999999/1000000) > > A little bit strange, no ? > > On Fri, Aug 1, 2014 at 3:05 PM, Natalia Tymchuk > <[email protected]> wrote: >> Hello. >> When I have the following expression >> {1-1e-6. 1e-6. 0} >> in the code and then I debug it I get >> {(1 - '<an unprintable nonliteral value>'). >> '<an unprintable nonliteral value>'. >> 0}. >> >> Is it a known problem or should I report an issue on debug tracker? >> >> Best regards, >> Natalia >> > > > > -- > Serge Stinckwich > UCBN & UMI UMMISCO 209 (IRD/UPMC) > Every DSL ends up being Smalltalk > http://www.doesnotunderstand.org/ >
