[squeak-dev] Float differences

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Wed Apr 25 20:41:02 UTC 2012


Le 25 avril 2012 22:38, Sven Van Caekenberghe <sven at beta9.be> a écrit :
> Bert,
>
> On 25 Apr 2012, at 22:28, Bert Freudenberg wrote:
>
>> If you use storeString instead of asString it will be the same. E.g.
>>
>>       (10 raisedTo: -100) asFloat storeString
>>       ==> '1.0e-100'
>
> Strange, Float>>#printOn:base: uses #absPrintOn:base: in Squeak, while it uses #absPrintExactlyOn:base: in Pharo.
>
> Did Squeak make that choice for speed reasons then ?
>
> Sven

Yes, I presume main reason was speed, and still is for adoption delay.

Nicolas


More information about the Squeak-dev mailing list