[Pharo-project] [squeak-dev] Re: The Trunk: Multilingual-ar.87.mcz
stephane.ducasse at inria.fr
Fri Feb 12 08:43:29 EST 2010
If I remember correctly the discussion we decided to have
'.1' squeezeOutNumber returning a number
'.1' asNumber raises an error.
On Feb 12, 2010, at 10:10 AM, John M McIntosh wrote:
> Also see
> '.1' asNumber toss an error in Pharo 1.1 11043
> '1.0e+2' asNumber
> returns 1.0
> yet other I think more knowledgeable people say
> I'd just say any expectations of converting a string to a number in most flavours of Squeak should be viewed with suspicion.
> On 2010-02-12, at 12:44 AM, Andreas Raab wrote:
>> Nicolas Cellier wrote:
>>> This of course fail with Number>>readFrom:
>>> You can also simply try
>>> 3r1.1e55 - 3r11.0e54
>>> and the SqNumberParser form...
>>> (SqNumberParser parse: '3r1.1e55') - (SqNumberParser parse: '3r11.0e54')
>>> Maybe it's time to push the readFrom: changes i already pushed in Pharo...
>> Go for it. You're the best expert we have in this area, and I trust your judgment.
>> - Andreas
> John M. McIntosh <johnmci at smalltalkconsulting.com> Twitter: squeaker68882
> Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
More information about the Pharo-dev