Computer Science, asked by bpriyadarshini, 6 months ago

Math. floor(7.99) write the output ​

Answers

Answered by Anonymous
3

Answer:

what? I am not able to understand your question

Answered by utsrashmi014
0

By rounding down, it produces the biggest whole number that is smaller than the number that is  by ignoring the fractional part. It only accepts the integer portion of positive real numbers and truncates the fractional portion. It takes the integer number less than the fractional component for all negative real values.

Explanation

The greatest integer number that is less than or equal to the parameter and equal to the mathematical integer of a double value is found using the java.lang.Math.floor() method.

This method will return the Floor value whether the parameter is a positive or negative double value.

This method will return the same argument if the argument is NaN.

This method will return Infinity with the same sign as the argument if the argument is Infinity.

Math.floor(7.99)

which is equals 7.00.

#SPJ2

Similar questions