Closed
Bug 337255
Opened 19 years ago
Closed 19 years ago
parseInt: Error in parsing string "08","09"
Categories
(Toolkit Graveyard :: Error Console, defect)
Tracking
(Not tracked)
People
(Reporter: fafejta.ondrej, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; cs; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; cs; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
Code:
x="08";
alert(parseInt(x));
// return 0. It is wrong
Next examples
x==01 parseInt(x)==1
x==02 parseInt(x)==2
x==03 parseInt(x)==3
x==04 parseInt(x)==4
x==05 parseInt(x)==5
x==06 parseInt(x)==6
x==07 parseInt(x)==7
x==08 parseInt(x)==0
x==09 parseInt(x)==0
Fafi
Reproducible: Always
Comment 1•19 years ago
|
||
This is invalid, see for the explanation in bug 43425.
*** This bug has been marked as a duplicate of 43425 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
| Assignee | ||
Updated•17 years ago
|
Product: Firefox → Toolkit
| Assignee | ||
Updated•9 years ago
|
Product: Toolkit → Toolkit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•