ICSE Class 10 Computer Applications Question 21 of 76

Revising Basic Java Concepts — Question 25

Back to all questions
25
Question

Question 14(i)

State the value and type of each expression.

Math.floor(7.99)
Answer

The output value is 7.0. The type of expression is double.

Explanation

Math.floor( ) returns the largest double value that is less than or equal to the argument and is equal to a mathematical integer. Hence, output is 7.0 and data type of result is double.