Microsoft® JScript parseInt Function See Also |
Language Reference
|
Converts String objects into integers.
parseInt( numstring )
The numstring argument is a String object that contains an integer.
The parseInt function returns an integer value equal to the number contained in numstring. If numstring cannot be successfully parsed into an integer, NaN (not a number) is returned.
You can test for NaN using the isNaN function.
© 1996 by Microsoft Corporation.