Hello,

I have a question about roundup or down a number.

i have the following formula:

o = hoh + hoh

b = depth

a = b/o

t = a

dp = 0 ### for 0 decimal places

t = (t*10**dp).round*10**-dp

What i want is the result form a =b/o, is roundup or down to a whole number. So if the result is, for example 5.43 is 5 and 6.79 is 7. But the code i found and used doesn’t seem to work.

Thanks for the help.