Computer Applications

State the value and type of each expression.

Math.abs(-1e-1) +  Math.abs(-2e-2)

Java Math Lib Methods

19 Likes

Answer

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

Explanation

    Math.abs(-1e-1) + Math.abs(-2e-2)
⇒ 0.1 + 0.02
⇒ 0.12

Answered By

12 Likes


Related Questions