[Pharo-project] Unexpected behavior of roundTo:

Hilaire Fernandes hilaire.fernandes at gmail.com
Fri Apr 8 18:52:03 CEST 2011


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




More information about the Pharo-project mailing list