Testing if a String is a number
Damien Cassou
damien.cassou at laposte.net
Wed Jul 5 08:00:43 UTC 2006
ncellier at ifrance.com wrote:
> I suggest you use my Squeak NumberParser (See http://bugs.impara.de/view.php?id=3512 ) which has error handling a little bit more developped than just answering zero...
>
> You could simply test is aNumber is read without error from (self readStream), and assert the stream atEnd.
Hi Nicolas,
I thought about your parser but did not tried it yet. Does somebody plan
to include NumberParser into main stream ? I think it corrects some
bugs, is a good refactoring and brings additional possibilities.
Thank you Nicolas
Bye
More information about the Squeak-dev
mailing list
|