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
Determine the data type of the expression
if x is int, y is long, w is float, z is double, p is short and q is long double.
State the value and type of each expression.
Math.abs(-5) - Math.abs(-7)State the value and type of each expression.
Math.sqrt(0.0064)State the value and type of each expression.
Math.sqrt(Math.pow(2.7, 2))