Advertisements
Advertisements
Question
Distinguish between Math.cell() and Math.floor().
Distinguish Between
Solution
S. No. | Math.ceil() | Math.floor() |
1. | Math.ceil() returns the whole number that is bigger than or equal to the given value. | Math.floor() calculates the rounded number to the closest integer. |
2. | Example: Math.ceil(8.5) returns 9.0. | Example: Math.floor(8.5) returns 8.0. |
shaalaa.com
Is there an error in this question or solution?