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.
精彩评论