Major Member
您的住址: Terran Empire
文章: 283
|
因為浮點數無法精確地儲存某些數值。
http://en.wikipedia.org/wiki/Floating-point_number
引用:
Floating-point numbers are intended to approximate the mathematical real numbers. But while the real numbers form a continuum that can be subdivided without limit, floating-point numbers have only finite resolution—they can only represent discrete points on the real number line. (In double precision representation, consecutive points differ by about 1 part in 1016.) That is, they can only represent a subset of the reals.
|
|