What is the output? System.out.println(Math.floor(-5.01))
Answers
Answered by
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
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
Social Sciences,
2 months ago
Physics,
2 months ago
Social Sciences,
4 months ago
Math,
10 months ago
Political Science,
10 months ago