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.
|
Results 1 to 14 of 14
Thread: Javascript equivilantThreaded View
|
Click Here to Expand Forum to Full Width |