[squeak-dev] Float storage as Double?
Lawson English
lenglish5 at cox.net
Mon Apr 26 12:45:22 UTC 2010
Levente Uzonyi wrote:
>
> I still don't get it. Why do you convert the number to a String? The
> following method is ~20x faster:
>
> a :=
> 124999999999999999999999999999999999999999999999999987064068383137630325081727067987961060813568112169
> /
> 62500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.
>
> b := 10e-50.
> a truncateTo: b "===>
> (199999999999999999999999999999999999999999999999999/100000000000000000000000000000000000000000000000000)"
>
>
Thanks very much.
Lawson
More information about the Squeak-dev
mailing list
|