parseInt()
parseInt( value )
Converts the value passed to an integer value.
Parameters
value
the string value to be converted
Usage
function main() {
var myVar;
...
//convert the string representation into an integer
myVar = parseFloat( "5" );
}
Submit feedback about this site to: