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)
When we use the round() function, it will not give correct values.
you can check it using, round (2.735) and round(2.725)
please use
import math num = input('Enter a number') print(math.ceil(num*100)/100)