def specialRound(number, rounding):
temp = <NUM_LIT:0><EOL>if rounding == <NUM_LIT:0>:<EOL><INDENT>temp = number<EOL><DEDENT>else:<EOL><INDENT>temp =  round(number, rounding)<EOL><DEDENT>if temp % <NUM_LIT:1> == <NUM_LIT:0>:<EOL><INDENT>return int(temp)<EOL><DEDENT>else:<EOL><INDENT>return float(temp)<EOL><DEDENT>
A method used to round a number in the way that UsefulUtils rounds.