Parsing Localized Strings in JavaScript
Now I discover (well, the testers discover) JavaScript does not take locale into consideration when attempting to parse a float.
So if you’re localized to Belgium, then parseFloat ('134,39') returns 134.
You’ll need to wrap parseFloat appropriately.
More like this: javascript, localization.
This entry was written by
Bill Humphries and posted on
September 10, 2004 at 12:00 am and filed under Uncategorized. Bookmark the
permalink. Follow any comments here with the
Atom feed for this post.
Both comments and trackbacks are currently closed.