type cast int javascript code example
Example: javascript convert string to number
var myInt = parseInt("10.256"); //10
var myFloat = parseFloat("10.256"); //10.256
var myInt = parseInt("10.256"); //10
var myFloat = parseFloat("10.256"); //10.256