Path: utzoo!attcan!uunet!van-bc!ubc-cs!alberta!oha!tony From: tony@oha.UUCP (Tony Olekshy) Newsgroups: comp.lang.c Subject: Re: Inherent imprecision of floating point variables Message-ID: <439@oha.UUCP> Date: 29 Jun 90 01:42:36 GMT References: <3300@crash.cts.com> <44436@ism780c.isc.com> Organization: Olekshy Hoover & Associates Ltd., Edmonton, Alberta, Canada. Lines: 18 In-Reply-To: Message dated 27 Jun 90 14:16:46 GMT In , dylan@ibmpcug.co.uk (Matthew Farwell) writes: > > > [question about] while (f != 10.0) f += 0.1; > > If its all to do with conversion routines, why doesn't this stop when f > reaches 10? [which was a rhetorical question, to the poster he had quoted] I add... It does not stop at (f == 10.0) simply because no-one said f = 10.0; The converse (why did it stop, if it had) is more complex. Next question. -- Yours etc., Tony Olekshy. Internet: tony%oha@CS.UAlberta.CA BITNET: tony%oha@UALTAMTS.BITNET uucp: alberta!oha!tony