I am currently having some troubles with parseFloat(String). Here is some code to illustrate it:
pos.x = parseFloat("1,2345");
pos.x = parseFloat("1.2345");
The first one works against everything I found on the net correctly on my system (Win 7 64bit, german), but the second doesnt. It is the other way around for the one I am working together with, who lieves in the US and uses the US version of Win 7 64bit.
Is this possible, or am I just too stupid? It also seems as if converting a float to a string produces a comma on my system but a point on the us system...
Is there any better solution to this problem, then always checking the OS before parsing?
Thanks.