小编use*_*889的帖子

python 3圆函数逼近

我遇到了python圆函数的问题.当我通过执行round(0.715,2)答案是2位数来回答是0.71时,类似地,当我执行round(0.615,2)结果是0.61时.但是当我执行round(0.515,2)它时给出0.52,类似round(0.915,2)的结果是0.92.

有人可以解释一下吗?

python math decimal rounding python-3.x

3
推荐指数
1
解决办法
1320
查看次数

标签 统计

decimal ×1

math ×1

python ×1

python-3.x ×1

rounding ×1