[squeak-dev] Some strange behavior
Levente Uzonyi
leves at elte.hu
Thu Oct 28 20:27:27 UTC 2010
On Thu, 28 Oct 2010, Bert Freudenberg wrote:
>
> On 28.10.2010, at 21:59, Mateusz Grotek wrote:
>
>> 6 * 0.2 CTRL-P 1.2
>> 1.2 - 1 CTRL-P 0.2
>> 6 * 0.2 - 1 CTRL-P 0.2000000000000002
>>
>> Squeak 4.1 #9957
>>
>> bug or not?
>
> Not.
You can find the explanation here: http://floating-point-gui.de/ . If you
really need exact results, then you can use Fractions:
6 * (1/5) - 1 "===> (1/5)"
Levente
>
> - Bert -
>
>
>
More information about the Squeak-dev
mailing list
|