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,548c38bb2d3e1bb6 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!k10g2000yqa.googlegroups.com!not-for-mail From: Martin Newsgroups: comp.lang.ada Subject: Re: understanding floating point types Date: Mon, 23 Aug 2010 00:15:09 -0700 (PDT) Organization: http://groups.google.com Message-ID: <5c162267-72b0-49a0-bed2-620e880612df@k10g2000yqa.googlegroups.com> References: <74406fc1-f64b-4a3e-9dd6-301f1ed467ab@w30g2000yqw.googlegroups.com> <7b0ca24f-4a5e-43a9-9f71-e4adffb98694@q1g2000yqg.googlegroups.com> <37d8fbc1-fdaf-4ca9-9393-6163f2e3fa2e@s9g2000yqd.googlegroups.com> <2d2a622b-6c4a-45b7-9e3c-a565d5dbc9e3@p3g2000yqp.googlegroups.com> NNTP-Posting-Host: 86.169.173.40 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1282547710 15520 127.0.0.1 (23 Aug 2010 07:15:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 23 Aug 2010 07:15:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k10g2000yqa.googlegroups.com; posting-host=86.169.173.40; posting-account=g4n69woAAACHKbpceNrvOhHWViIbdQ9G User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.0.10, Ant.com Toolbar 1.3,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:13651 Date: 2010-08-23T00:15:09-07:00 List-Id: On Aug 22, 8:05=A0pm, Ada novice wrote: [snip] > 1. You used: type My_Float is digits 3; I tend to confuse the fact > that digits 3 means 3 digits of precision after the decimal point? Not quite - it's "3 significant (decimal) digits", e.g. 7_654.32 with a float defined as 'digits 3', the "765" are 'guaranteed' what follows those isn't (although in practice, any cpu I'm likely to be using, will get more than the first 3 digits accurate). -- Martin