小编Max*_* I.的帖子

浮点数的加法/减法如何在Python中起作用?

我不明白以下代码行中发生了什么:

>>> 123456789012345678. -123456789012345677.
0.0
Run Code Online (Sandbox Code Playgroud)

结果不应该是1.0吗?

谢谢.干杯:)

python floating-point

0
推荐指数
1
解决办法
4265
查看次数

标签 统计

floating-point ×1

python ×1