Movatterモバイル変換
[0]ホーム
Floating point (in)accuracy?
Grant Edwardsgrante at visi.com
Wed Apr 25 16:48:29 EDT 2001
In article <mailman.988227064.4196.python-list at python.org>, Tim Peters wrote:>[Grant Edwards]>> I presume that on typical platforms, it can't be guaranteed>> that float(repr(x)) == x.>>On IEEE-754 platforms whose C I/O libraries meet the minimal IEEE-754>accuracy requirements for float<->string conversions, it is in fact>guaranteed that>> float(repr(x)) == xIt certainly seems to be true on RH6.2 on an AMD K6-2. Thelevel of compliance in Unix systems' floating point support seems to have improved a lot in the last 10 years.-- Grant Edwards grante Yow! My NOSE is NUMB! at visi.com
More information about the Python-listmailing list
[8]ページ先頭