java tutorial - Java Math.ceil() Method - java programming - learn java - java basics - java for beginners
Learn Java - Java tutorial - Java numbers ceil - Java examples - Java programs
Description
The Math.ceil () method gives an integer with a zero fractional part closest to the number of the argument to the right, in other words rounding the fraction to the larger side.
Syntax
The method has the following options:
Options
Detailed information about the parameters:
- Primitive data type is double or float.
Return value
- In Java, Math.ceil () returns an integer that is closest to the number of the argument to the right. Returns as a double.