Computer Science, asked by narini102, 9 months ago

How is math.ceil(89.7) different from math.floor (89.7)?

Answers

Answered by DrNykterstein
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 Anonymous
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