I believe that works like BASIC's int() though, not like iPart(), meaning that it rounds everything down. So -1.9 is -2 instead of -1...
If you want to have it round then just write a function like
function ipart(x){
if(x<0)return Math.ceil(x);
return Math.floor(x);
}
and use ipart(value) to get the integer part.