Article View: comp.sys.intel
Article #2309Re: PENTIUM BUG: PURITY TEST (UUENCODED BINARY)
From: Lawrence Kirby
Date: Wed, 16 Nov 1994 13:26
Date: Wed, 16 Nov 1994 13:26
32 lines
2222 bytes
2222 bytes
In article <1994Nov14.184755.786@guitar.demon.co.uk>
marcus@guitar.demon.co.uk "Marcus Bainbridge" writes:
>Keith Pritchard wrote:
>
>> (1.0/824633702449.0)*824633702449.0 is not equal to 1.0!
>
>[not directed at Keith, but at whoever wrote the test program]
>
>If you're doing things like this to that many places, you need something
>better than 64-bit or 80-bit accuracy to guarantee that *all possible
>calculations* are accurate. My Casio calculator says the result is
>0.999999999. Does this mean I can get them to replace the CPU?
All possible calculations should be correct to a particular degree of
accuracy determined (mostly) from the representation. 0.999999999 may be
adequate for the format your calculator uses but it is not accurate enough for
IEEE double precision format.
>OTOH, Windows calculator has trouble doing something like 1.02-1 (can't
>remember the exact sum, but the answer came out as 0 when it should have
>been 0.02).
In this case the problem can be shown by means other than Windows Calculator.
It sounds like quite a serious bug in Calculator if what you say is true
however (I assume this isn't a CPU bug).
--
-----------------------------------------
Lawrence Kirby | fred@genesis.demon.co.uk
Wilts, England | 70734.126@compuserve.com
-----------------------------------------
Technical Details
Message-ID:
<784992378snz@genesis.demon.co.uk>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!howland.reston.ans.net!news.sprintlink.net!demon!genesis.demon.co.uk!fredReferences:
<784752023snz@sidaway.demon.co.uk> <3a6b13$18e@datawell.demon.co.uk> <1994Nov14.184755.786@guitar.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1036bc,4ec75a159daae016 X-Google-Attributes: gid1036bc,public X-Google-Thread: 110292,4ec75a159daae016 X-Google-Attributes: gid110292,public X-Google-ArrivalTime: 1994-11-16 06:22:44 PST Newsgroups: comp.sys.intel,demon.tech.pc From: fred@genesis.demon.co.uk (Lawrence Kirby) Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!howland.reston.ans.net!news.sprintlink.net!demon!genesis.demon.co.uk!fred Subject: Re: PENTIUM BUG: PURITY TEST (UUENCODED BINARY) References: <784752023snz@sidaway.demon.co.uk> <3a6b13$18e@datawell.demon.co.uk> <1994Nov14.184755.786@guitar.demon.co.uk> Organization: none Reply-To: fred@genesis.demon.co.uk X-Newsreader: Demon Internet Simple News v1.27 Lines: 32 Date: Wed, 16 Nov 1994 13:26:18 +0000 Message-ID: <784992378snz@genesis.demon.co.uk> Sender: usenet@demon.co.uk