How to round a number with trailing 0's and still have 2 decimal places? Python 3.8

后端 未结 0 1986
日久生厌
日久生厌 2021-02-04 10:15

Quick Disclaimer, I am a relatively new programmer, and here is my issue...

price = 85.3000
price = round(price, 2)
print(price)
>>> 85.3
<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题