casting/truncating float to int??
Now this is probably really obvious and in C I could do it easily with a cast,
(int)floatNumber
but how do I do this in javascript??
Thanks
I just found the following:
x = (a/b) |0;
is that the best way of doing this??
Math.floor() is probably what you're looking for.
that's exactly what I was looking for. thanks