Optimizing Math.floor() method by using int() function

To round down a positive number, the int() function is much faster than the Math.floor() method.
http://wonderfl.net/c/tTHN

However their results are different for negative numbers.  Therefore, custom function is defined to get the same results as the Math.foor() method by using the int() function.