Using Python 2.7 how do I round my numbers to two decimal places rather than the 10 or so it gives?
print \"financial return of outcome 1 =\",\"$\"+str(out1)
Rounding up to the next 0.05, I would do this way:
def roundup(x): return round(int(math.ceil(x / 0.05)) * 0.05,2)