Python: is combining *= with round() possible?

前端 未结 0 801
遥遥无期
遥遥无期 2021-01-18 03:57

Suppose that x = 6.214. I want to multiply x by 2, and round the result to two decimal places. Obviously, this can be achieved like so: x = r

相关标签:
回答
  • 消灭零回复
提交回复
热议问题