parseInt()

eSignal EFS 2

parseInt()

Top  Previous  Next

 

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" );

       

 

}