Computer Science
Explain the use of Math.ceil() mathematical function
Java Math Lib Methods
1 Like
Answer
Math.ceil method returns the smallest double value that is greater than or equal to the argument and is equal to a mathematical integer.
For Example:
System.out.println(Math.ceil(65.5));
will print 66.0. Here 66.0 is the smallest mathematical integer greater than 65.5 so it is the output.
Answered By
3 Likes