Political Science, asked by sharanya1018, 5 months ago

Give the output of the following: i) Math.ceil(3.4) + Math.pow(2,3) ii) Math.floor(-4.7); with explanation please I need
it fast​

Answers

Answered by heyParam
3

Answer:

i) 4.0

ii) 8

iii) -5.0

Explanation:

Math.ceil(3.4): The java.lang.Math.ceil (double a) returns the smallest (closest to negative infinity) double value that is greater than or equal to the argument and is equal to a mathematical integer.

Math.pow(2,3): The java.lang.Math.pow(double a, double b) returns the value of the first argument raised to the power of the second argument. If the second argument is positive or negative zero, then the result is 1.0. If the second argument is 1.0, then the result is the same as the first argument.

Math.floor(-4.7): The java.lang.Math.floor(double a) returns the largest (closest to positive infinity) double value that is less than or equal to the argument and is equal to a mathematical integer.

Similar questions