Edit in JSFiddle

var _int = 10;
alert(parseInt(10.11));
alert(parseFloat(10));
alert(parseFloat(10.11));
alert(parseFloat("123str"));