Parsing floating point numbers with thousands separators

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Parsing floating point numbers with thousands separators

Holger Kleinsorgen-4
Hello,

the following expression wrongly returns the value "12345":

(Locale named: #'en_EN.UTF-8') numberPolicy reader readFrom: '1,2,3,4,5'
readStream type: Number

NumberReader>>getIntegerPartFrom:digits: probably needs to be a bit more
picky about the thousands separators.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Parsing floating point numbers with thousands separators

Kooyman, Les
[vwnc] Parsing floating point numbers with thousands separators
Thanks Holger.


From: [hidden email] on behalf of Holger Kleinsorgen
Sent: Thu 3/25/2010 8:07 AM
To: vwnc NC
Subject: [vwnc] Parsing floating point numbers with thousands separators

Hello,

the following expression wrongly returns the value "12345":

(Locale named: #'en_EN.UTF-8') numberPolicy reader readFrom: '1,2,3,4,5'
readStream type: Number

NumberReader>>getIntegerPartFrom:digits: probably needs to be a bit more
picky about the thousands separators.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc