From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 107079,c7637cfdf68e766 X-Google-Attributes: gid107079,public X-Google-Thread: f8362,c7637cfdf68e766 X-Google-Attributes: gidf8362,public X-Google-Thread: 103376,c7637cfdf68e766 X-Google-Attributes: gid103376,public X-Google-Thread: f43e6,c7637cfdf68e766 X-Google-Attributes: gidf43e6,public X-Google-Thread: 109d8a,c7637cfdf68e766 X-Google-Attributes: gid109d8a,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: floating point comparison Date: 1997/09/05 Message-ID: #1/1 X-Deja-AN: 270006237 Distribution: inet References: <5tnreu$9ac$1@news.fsu.edu> <5ud3mc$5d2$1@news.fsu.edu> Organization: New York University Newsgroups: comp.lang.ada,sci.math.num-analysis,comp.software-eng,comp.theory,sci.math Date: 1997-09-05T00:00:00+00:00 List-Id: James said << Not quite. I have made the decision to represent a real number in a way restricted to a finite number of digits. It does not matter if they are binary or decimal. (Yes, I know what you probably meant to write, but saying "decimal value" carries various meanings as well.)>> Actually I meant decimal, see your original post, you specifically have given an example of a number representable exactly in decimal, and not in binary, and this is indeed a common case. After all input to a program can never be real numbers, it can only be representations of real numbers!