Even better:

2.8 truncateTo: 0.01
-> 2.8000000000000003


Le 08/04/2011 18:52, Hilaire Fernandes a écrit :
> It looks like a known issue:
> 
> printShowingDecimalPlaces: placesDesired
>       "This implementation avoids any rounding error caused by rounded or
> roundTo: "
>       ^ self asTrueFraction printShowingDecimalPlaces: placesDesired
> 
> 
> 
> Le 08/04/2011 18:47, Hilaire Fernandes a écrit :
>> 2.8011416510246336 roundTo: 0.01
>>
>> returns
>>
>>  2.8000000000000003
>>
>>
>> Tested with 1.2
>>
>>
>> Should I fill a ticket, I don't see anythings similar?
>>
>> Hilaire
>>
> 
> 


-- 
Education 0.2 -- http://blog.ofset.org/hilaire


Reply via email to