var i = 1.33
i = parseInt(i)

This will return an integer type but it won't round up -> 1.9 will return 1.

var i = 1.33
i = Math.round(i)

Rounds the number but I'm not 100% sure if it returns an integer type - might need to parseInt afterwards.