Home >Web Front-end >JS Tutorial >Comparison of rounding methods in js
Math.ceil(): Rounding up
Math.floor(): Rounding down
Math.round(): Rounding
Things to note For example: Math.ceil (-1.6) = -1.0;
The above is the detailed content of Comparison of rounding methods in js. For more information, please follow other related articles on the PHP Chinese website!