Computer Science, asked by niladribanerjee1717, 2 months ago

What is the output? System.out.println(Math.floor(-5.01))​

Answers

Answered by ambikayadav23
1

An output device is any piece of computer hardware equipment which converts information into human-readable form. It can be text, graphics, tactile, audio, and video. Some of the output devices are Visual Display Units i.e. a Monitor, Printer, Graphic Output devices, Plotters, Speakers etc.

Answered by ravi2303kumar
1

Answer:

- 6.0 is the output of the given code.

Explanation:

  This method returns largest floating-point value that is less than or equal to the argument and is equal to a mathematical integer of a double value.

   If the argument is positive or negative double value, this method will return the Floor value.

here, in the example the floor value of -5.01 is -6.0

Similar questions