[Pharo-project] '.2e2' asNumber ?

John M McIntosh johnmci at smalltalkconsulting.com
Thu Sep 24 16:36:28 EDT 2009


Ok, well I'm going to go away and build a test suite to check for all  
combos of
'.'
'1.'
'1.2'
'.e'
'1.e'
'1.2e'
'1.2e3'
'-1.e'
'-1.2e-3'

so we can at least agree on what a valid number is.


On 2009-09-24, at 6:57 AM, Nicolas Cellier wrote:
> SqNumberParser>>fail
> 	failBlock isNil ifFalse: [^failBlock value].
> 	self error: 'Reading a number failed'
>

--
= 
= 
= 
========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com>   Twitter:   
squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
= 
= 
= 
========================================================================








More information about the Pharo-dev mailing list