AnsweredAssumed Answered

Rounding decimals up using the field calculator

Question asked by ForanNorge on Feb 23, 2011
Latest reply on Mar 15, 2012 by cgraves-esriaustralia-com-au-esridist

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

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?