Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Ceiling value of a double [decimal]

807597Mar 8 2005 — edited Mar 8 2005
I have a double variable

double var = 100.1

I would like to know if there are any inbuilt functions to get the ceiling value of this variable. Ideally

ceiling(var) should give me 101.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 5 2005
Added on Mar 8 2005
1 comment
103 views