Is .2 irrational?

Steven E. Rice, P.E. stever at videovax.Tek.COM
Thu Jan 15 07:21:53 AEST 1987


In article <1384 at bunker.UUCP>, Gary M. Samuelson (garys at bunker.UUCP)
writes:

> . . .  The
> problem is that it is not possible to represent exactly that particular
> number in typical floating point formats.  A floating point format could
> be designed which allowed exact representation of all decimal fractions,
> up to some number of places precision, but I know of no implementation
> which does that.  . . .

Oh, how quickly the glory fades!  The IBM 1620 does (now mostly _did_)
exactly what you wanted, since it is (was) a variable-operand-length, BCD
machine.

					Steve Rice

----------------------------------------------------------------------------
{decvax | hplabs | ihnp4 | uw-beaver}!tektronix!videovax!stever

inews > 50% filler
  inews > 50% filler
    inews > 50% filler
      inews > 50% filler
        inews > 50% filler



More information about the Comp.lang.c mailing list