[Pharo-project] '.2e2' asNumber ?
John M McIntosh
johnmci at smalltalkconsulting.com
Wed Sep 23 17:25:13 EDT 2009
I noticed that in Squeak and earlier version of Pharo doing
would return 20.0
or '.2' asNumber
would return 0.2
but currently in Pharo those return 0, without error, comment, or
other hand waving.
Good thing I have Sunits...
So is this a bug or feature?
Hint obviously in the Fractions calculator people are lazy and enter .
2e2 or .2 without the leading zero...
John M. McIntosh <johnmci at smalltalkconsulting.com> Twitter:
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
More information about the Pharo-dev