def toint(number):
if isinstance(number, float):<EOL><INDENT>if number > <NUM_LIT:1>:<EOL><INDENT>number = round(number, <NUM_LIT:0>)<EOL><DEDENT>else:<EOL><INDENT>number = round(math.ceil(number), <NUM_LIT:0>)<EOL><DEDENT><DEDENT>return int(number)<EOL>
Helper to return rounded int for a float or just the int it self.