victorcastelan
8/11/2013 - 2:55 AM

Rounded

Rounded

// Math.floor
Math.floor(89.938 / 293.3);
Math.floor(83784 / 9289.2);
Math.floor(7 / 60);

// Math.round
Math.round(89.938 / 293.3);
Math.round(83784 / 9289.2);
Math.round(7 / 60);

// parseInt
parseInt(89.938 / 293.3);
parseInt(83784 / 9289.2);
parseInt(7 / 60);

// Bitwise |
89.938 / 293.3 | 0;
83784 / 9289.2 | 0;
7 / 60 | 0;

// Bitwise
89.938 / 293.3 >> 0;
83784 / 9289.2 >> 0;
7 / 60 >> 0;