瀏覽單個文章
kec
Major Member
 
kec的大頭照
 

加入日期: Feb 2004
您的住址: 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.
 
舊 2006-10-21, 06:00 AM #2
回應時引用此文章
kec離線中