Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!husc6!rutgers!sri-unix!hplabs!hp-sdd!ncr-sd!gould9!scubed!piaget!jc
From: jc@piaget.UUCP (John Cornelius)
Newsgroups: comp.lang.c,comp.unix.xenix
Subject: Re: Are the floating point routines on my machine broken?
Message-ID: <153@piaget.UUCP>
Date: Fri, 2-Jan-87 10:44:58 EST
Article-I.D.: piaget.153
Posted: Fri Jan  2 10:44:58 1987
Date-Received: Sat, 3-Jan-87 21:37:33 EST
References: <442@catnip.UUCP> <7456@utzoo.UUCP>
Reply-To: jc@piaget.UUCP (John Cornelius, System Manager)
Organization: International Widget
Lines: 12
Xref: mnetor comp.lang.c:582 comp.unix.xenix:39

The value .2 is an irrational fraction in binary.  Adding the
representation of (irrational) .2 to (rational) +3. results in a
number slightly higher than (rational) +3.0, thereby terminating
the loop.

Henry Spencer is quite right about using floating point numbers
as loop indices, it is a _bad_ practice and has been for nearly
30 years.

-- 
John Cornelius
(...!sdcsvax!piaget!jc)