Round Up Double to Whole Number?
I have a double that contains the resul开发者_如何转开发t of a calculation.
i.e 2.123 etc
Is there a simple way where i can round up this number to the next number up i.e 3
I have searched the forum, but only come up with how to round off to decimal places.
cheers
Have you checked Math.ceil(double)
?
精彩评论