5.3 printShowingDecimalPlaces: 2 displays '5.29' instead of'5.30'

nicolas cellier ncellier at ifrance.com
Thu Nov 22 20:40:47 UTC 2007


nicolas cellier a écrit :
> The only thing you should try if you cannot get read of Float because of 
> 3rd party code is:

Hem, get rid...

> 
> (5.3 asScaledDecimal: 2) roundTo: 0.01s2.
> 

or simply:

5.3 roundTo: 0.01s2




More information about the Squeak-dev mailing list