Computer Science, asked by safaparveenh, 19 days ago

(4) r=Math.floor (4.3) r=Math.floor (-7.9) te z=Math.ceil (17.2) du = Math.ceil (-19.2) le) v=Math.floor (-10.8)​

Answers

Answered by Shivu516
2

Hope this helps ^_^

The question was not explained properly so I have added the answers of the values not the variables

Answer:

Math.floor(4.3) = 4

Math.floor(-7.9) = -8

Math.ceil(17.2) = 18

Math.ceil(-19.2) = -19

Math.floor(-10.8) = -11

Explanation:

Math.floor()

The Math.floor() returns the double value that is less than or equal to the argument and is equal to the nearest mathematical integer. If the argument is Integer, then the result is Integer.

Math.ceil()

The Java Math ceil () method rounds the specified double value upward and returns it. The rounded value will be equal to the mathematical integer. That is, the value 3.4 will be rounded to 4.0 which is equal to integer 4.

Please mark my answer as Brainliest

Similar questions