State the value and type of each expression.
Math.min(-5, 1.0)
4 Likes
The output value is -5.0. The type of expression is double.
Math.min(a, b) returns the minimum of a and b. As one of the arguments is of double type hence, data type of return value is also double.
Answered By
2 Likes
Math.max(1.5e-2, 0.095)
Math.ceil(4.002)
Math.floor(7.99)
Math.ceil(-2.73)