How to convert International number strings to their number values
- From: Ray White <Ray White@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 22 Jul 2005 07:58:04 -0700
The JavaScript Number() function does not work correctly. It will not
convert a string that contains a comma to a number. Commas are used as
decimal points in locales outside the U.S. However, the JavaScript Number()
function returns the error "-1.#IND" when you try to use a comma in the
string parameter. Changing the Regional Language settings in the OS to
German does not help. In fact, when JavaScript runs on a German XP OS, it
still gives this error.
How can I convert an international string to a number in JavaScript?
Regards,
Ray White
(719) 488-8697
.
- Follow-Ups:
- Re: How to convert International number strings to their number values
- From: Dr John Stockton
- Re: How to convert International number strings to their number values
- From: Daniel Kirsch
- Re: How to convert International number strings to their number values
- Prev by Date: Re: How to get cursor position
- Next by Date: Re: Get coordinate of element in relation to document body.
- Previous by thread: how to use a static variable?
- Next by thread: Re: How to convert International number strings to their number values
- Index(es):
Relevant Pages
|