ceil : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

ceil
To take a float or double and want the corresponding integer (possibly as a float, double, int or long) there are four basic algorithms you might use: round, ceil, floor or truncate. With ceil (ceiling), numbers are always rounded up to the next integer. Use Math.ceil and the description of covered quotient division.
value ceil
-1.6 -1
-1.5 -1
-1.4 -1
+1.4 +2
+1.5 +2
+1.6 +2

This page is posted
on the web at:

http://mindprod.com/jgloss/ceil.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\ceil.html
logo
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.
Blog
IP:[65.110.21.43]
Your face IP:[54.90.176.79]
You are visitor number