Closed Bug 506475 Opened 16 years ago Closed 16 years ago

JavaScript. parseInt of '09' and '08' gives 0 instead of 9 or 8

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 43425

People

(Reporter: frostbaka, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12 using parseInt on String values "09" and "08" gives a result of 0 Reproducible: Always Steps to Reproduce: 1.<script>alert(parseInt("09")) </script> 2.Firebug->Console->alert(parseInt("09")) 3. Expected Results: 9 Problem was encountered in Linux and Windows versions of Firefox since version 3.0
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.