Are the floating point routines on my machine broken?

John Cornelius jc at piaget.UUCP
Sat Jan 3 01:44:58 AEST 1987


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)



More information about the Comp.unix.xenix mailing list