Is it the case that parseFloat will ALWAYS successfully parse a float that is formatted with the user's local decimal indicator. E.g. A German browser will correctly parse one dollar seventeen cents formatted as 1,17?
The particular problem that I'm trying to address wouldn't affect you as I guess that you've got the machine set to a US locale. The issue that I have is that not all locales use a '.' and I'm trying to establish if the js engine in the browser is smart enough to swap the separator based on the locale. I guess that I'll just have to swap the settings on my machine but I didn't really want to have to validate the behaviour for every country that the app needs to work in, oh well ;->
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.