Closed Bug 1208691 Opened 9 years ago Closed 9 years ago

Non-string value for the first argument of the parseInt() function will not be converted to one (1).

Categories

(Developer Documentation Graveyard :: JavaScript, defect, P5)

All
Other
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: fumio, Unassigned)

References

()

Details

:: Developer Documentation Request

      Request Type: Correction
     Gecko Version: unspecified
 Technical Contact: 

:: Details

According to the Parameters section of the parseInt(), "If string is not a string, then it is converted to one".  But this explanation is incorrect.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt#Parameters
the meaning of "one" means "string" here not 1 (the number). I changed it to

"If string is not a string, then it is converted to a string (using the ToString abstract operation)."
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.