how to cast js variable to int code example
Example: javascript string to integer
<script language="JavaScript" type="text/javascript">
var a = "3.3445";
var c = parseInt(a);
alert(c);
</script>
<script language="JavaScript" type="text/javascript">
var a = "3.3445";
var c = parseInt(a);
alert(c);
</script>