开发者

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) ?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜