Possible Duplicate:
Javascript parseInt gives very unexpected results
Can someone explain why javascript interprets parseInt(08)
and parseInt(09)
as zero but does everything right on 01 to 07?
parseFloat
will give me the correct values for those values, I just couldn't find an answer, why javascript will only do this to the 8s and 9s.
For your information: the leading zeros are from times (hours:minutes).
Please have a look at the following link for a better example: http://jsfiddle.net/NPtzA/3/ There you can see this unexpected behaviour.