开发者

vb.net: rounding to next whole number

if i have an integer a_variable = 1.1

how do i r开发者_JAVA百科ound it up to 2?


Math.Ceiling(a_variable)


Assuming you mean a single/double, use math.ceiling to get the next highest whole number.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜