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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d402aef7676f64a5 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!n67g2000cwd.googlegroups.com!not-for-mail From: "Martin" Newsgroups: comp.lang.ada Subject: Re: Comparing Floating Point Values Date: 14 Dec 2006 14:22:34 -0800 Organization: http://groups.google.com Message-ID: <1166134954.701862.221690@n67g2000cwd.googlegroups.com> References: <1166026474.277616.267400@f1g2000cwa.googlegroups.com> NNTP-Posting-Host: 81.156.60.221 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1166134967 529 127.0.0.1 (14 Dec 2006 22:22:47 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 14 Dec 2006 22:22:47 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1) Gecko/20061010 Firefox/2.0,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: n67g2000cwd.googlegroups.com; posting-host=81.156.60.221; posting-account=XiyOPQwAAAAWaVcCa4QxXp0-x5e4JDUD Xref: g2news2.google.com comp.lang.ada:7913 Date: 2006-12-14T14:22:34-08:00 List-Id: Steve wrote: [snip] > http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm I'd second this - I've used the algorithms before and hightlights the problems using the solutions provided 'above' in this thread. Another path could be to ask... "Do I /really/ need to use Floating-Point or would Fixed-Point be better?"... Cheers -- Martin