Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

ceil()
The ceil() method returns the smallest integer, as a double, that is greater than or equal to the argument and equal to the nearest integer value. In other words, the argument is rounded up to the nearest integer equivalent.All the following calls to Math.ceil() return the double value 9.0:
Math.ceil(9.0) // result is 9.0
Math.ceil(8.8) // rises to 9.0
Math.ceil(8.02) // still rises to 9.0
Posted By: Name:Rajesh Kr URL: ceil()