ICSE Class 10 Computer Applications
Question 6 of 30
Solved Sample Paper 4 — Question 6
Back to all questions 6
Question Question 1(vi)
What will be the output of Math.floor(-20.10);?
- -20.0
- -21.0
- 20
- 21
-21.0
Reason — Math.floor() method returns the largest double value that is less than or equal to the argument and is equal to a mathematical integer. Thus, -21.0 is returned by Math.floor(-20.10); method.