Rounding to two decimal places in Python 2.7?

后端 未结 9 2478
一个人的身影
一个人的身影 2020-11-30 23:34

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)         


        
9条回答
提交回复
热议问题