English

Distinguish between Math.cell() and Math.floor(). - Computer Applications

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?
Chapter 1.07: Mathematical Library Methods - EXERCISES [Page 81]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.07 Mathematical Library Methods
EXERCISES | Q V. 1. | Page 81
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×