Is it possible to round upwords using the built-in math module? I know that you can use math.floor() to round down, but is there a way to round up? Currently, I use this to round:
def roundTo32(x, base=32):
return int(base * round(float(x) / base))
but that doesn't always round up.