0
JavaScript math operations
Pls what does Math.floor and Math.ceil mean? And ehat is the difference between the two?
2 Answers
+ 2
Never mind, saw it now.
The ceil() method of math object is used to get the smallest integer, greater than or equal to a number.
+ 4
it is the way you round a number
floor always rounds down and ceil rounds up
floor(2.7) --> 2
ceil(2.3) --> 3