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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d402aef7676f64a5,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!f1g2000cwa.googlegroups.com!not-for-mail From: "markp" Newsgroups: comp.lang.ada Subject: Comparing Floating Point Values Date: 13 Dec 2006 08:14:34 -0800 Organization: http://groups.google.com Message-ID: <1166026474.277616.267400@f1g2000cwa.googlegroups.com> NNTP-Posting-Host: 157.127.124.14 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1166026483 29092 127.0.0.1 (13 Dec 2006 16:14:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 13 Dec 2006 16:14:43 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: f1g2000cwa.googlegroups.com; posting-host=157.127.124.14; posting-account=_Inhcg0AAAAPC2BsuUqoGG-atarvM4_J Xref: g2news2.google.com comp.lang.ada:7905 Date: 2006-12-13T08:14:34-08:00 List-Id: I was wondering if there was a convention for comparing 2 floats dealing with significant digits. For example, if I had 2 variables (x and y) and wanted to see if they were equal in an if statement, is there a standard way to do a compare based on "x" significant digits? Thank you.