How is math.ceil(89.7) different from math.floor (89.7)?
Answers
Answered by
2
Math.ceil() will return the nearest smallest integer while the Math.floor() will return the nearest greatest integer.
Math.ceil(89.7) = 89
Math.floor(89.7) = 90
Answered by
1
Answer:
hi .....
math.ceil(89.7) returns 90
whereas,
math.floor (89.7) returns 89
so from here you can observe that ceil returns the smallest integer greater than or equal to a number ..
whereas floor returns the largest integer less tham or equal to a number
#hope it helps you
Similar questions
Hindi,
4 months ago
Math,
4 months ago
India Languages,
9 months ago
Computer Science,
9 months ago
Math,
1 year ago
Math,
1 year ago
Math,
1 year ago