Parse Integer JavaScript
var myInt = parseInt("10.256"); //10
var myFloat = parseFloat("10.256"); //10.256
Grepper
var myInt = parseInt("10.256"); //10
var myFloat = parseFloat("10.256"); //10.256
parseInt("-10");
parseInt("-10.33");
parseInt("10");
parseInt("10.33");
parseInt("10 20 30");
parseInt("10 years");
parseInt("years 10");