Hi,

I'm new to python and couldn't find an answer elsewhere to this problem. And I guess it's not a big deal actually, but I just don't get it...

Code Block:

def tvol(a, b, area):

if (a >=2):

return a*b/100

Expression:

tvol(!a!, !b!, !AREA!)

How do I get rounded values in the end, like VB would do. F. ex. 35.5 --> 36 and not 35, 35.4 --> 35.

Someone having an idea how to put this into the above script?

Thanks!

I'm new to python and couldn't find an answer elsewhere to this problem. And I guess it's not a big deal actually, but I just don't get it...

Code Block:

def tvol(a, b, area):

if (a >=2):

return a*b/100

Expression:

tvol(!a!, !b!, !AREA!)

How do I get rounded values in the end, like VB would do. F. ex. 35.5 --> 36 and not 35, 35.4 --> 35.

Someone having an idea how to put this into the above script?

Thanks!