开发者

vb.net: rounding to next whole number

开发者 https://www.devze.com 2022-12-13 22:40 出处:网络
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.

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

精彩评论

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