When x = 10^(30), y = -10^(30) and z = 1, why do (x+y)+z and x+(y+z) differ?

后端 未结 0 1948
甜味超标
甜味超标 2021-01-15 06:02

What Every Computer Scientist Should Know About Floating-Point Arithmetic makes the following claim:

Due to roundoff errors, the associative laws of alge

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