Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!mcsun!ukc!stc!miclon!ibmpcug!dylan From: dylan@ibmpcug.co.uk (Matthew Farwell) Newsgroups: comp.lang.c Subject: Re: Inherent imprecision of floating point variables Message-ID: <482e.268a1519@ibmpcug.co.uk> Date: 28 Jun 90 14:32:57 GMT References: <3300@crash.cts.com> <44436@ism780c.isc.com> <4186@jato.Jpl.Nasa.Gov> Reply-To: dylan@ibmpcug.CO.UK (Matthew Farwell) Organization: The IBM PC User Group, UK. Lines: 18 In article <4186@jato.Jpl.Nasa.Gov> kaleb@mars.UUCP (Kaleb Keithley) writes: >In article dylan@ibmpcug.CO.UK (Matthew Farwell) writes: >-[code segment deleted] >- >-If its all to do with conversion routines, why doesn't this stop when f >-reaches 10? >Because (10.0 - 0.1) + 0.1 will never be exactly equal to 10.0. This is exactly the point I was making. The person who I followed up to was saying it was to do with ascii->float conversion routines. I was making the point that it wasn't anything to do with them. Dylan. -- Matthew J Farwell | Email: dylan@ibmpcug.co.uk The IBM PC User Group, PO Box 360,| dylan%ibmpcug.CO.UK@ukc Harrow HA1 4LQ England | ...!uunet!ukc!ibmpcug.co.uk!dylan Phone: +44 81-863-1191 | Sun? Don't they make coffee machines?