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,65b3f028266fd999 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Question about ordinary fixed point types. Date: Mon, 16 Aug 2010 09:57:57 +0100 Organization: A noiseless patient Spider Message-ID: References: <4c685fac$0$2373$4d3efbfe@news.sover.net> <4c688a68$0$2376$4d3efbfe@news.sover.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Mon, 16 Aug 2010 08:57:57 +0000 (UTC) Injection-Info: mx01.eternal-september.org; posting-host="KCXegvZb5vh43D+f3BR6Ew"; logging-data="18072"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18pU8vu6RMHB/P3nWtMMP+QUgnCH160ujE=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:k1uxxZu0ar3KtZ2Sy4xzbmOikrA= sha1:6Sl5X+tsijI9TlUdXuyatTyBx3E= Xref: g2news1.google.com comp.lang.ada:13391 Date: 2010-08-16T09:57:57+01:00 List-Id: Jeffrey Carter writes: > On 08/15/2010 05:46 PM, Peter C. Chapin wrote: >> >> Probably I should use extra digits in the definition of the range to >> communicate my intentions to the compiler more precisely. Thus >> >> type Angle_Type is delta 0.0005 range -3.1415926535 .. 3.1415926535; > > Why not use Ada.Numerics.Pi? We had a problem where a subcontractor had defined pi to be 3.14159 .. not quite good enough for a 32-bit Float.