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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7a2d45f282a1da1c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-08-16 08:38:59 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread3.news.pas.earthlink.net.POSTED!not-for-mail From: "Matthew Heaney" Newsgroups: comp.lang.ada References: <3F3CCB0F.543478AF@adrianhoe.nospam.com.my> <3F3DA81B.2070701@attbi.com> Subject: Re: float with 24-bit resolution X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: Date: Sat, 16 Aug 2003 15:38:58 GMT NNTP-Posting-Host: 65.110.133.134 X-Complaints-To: abuse@earthlink.net X-Trace: newsread3.news.pas.earthlink.net 1061048338 65.110.133.134 (Sat, 16 Aug 2003 08:38:58 PDT) NNTP-Posting-Date: Sat, 16 Aug 2003 08:38:58 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:41589 Date: 2003-08-16T15:38:58+00:00 List-Id: "Robert I. Eachus" wrote in message news:3F3DA81B.2070701@attbi.com... > > Okay, I'll complain. ;-) You can declare the type as > > type Probably_Gonna_Work_But_Language_Lawyers_Will_Complain_Type is > > delta The_Delta range - 360.0 .. 360.0; > > but if you don't want to, you are much more likely to get exactly what > you want, and have the users understand it as well, if you say: > > The_Delta : constant := 720.0/2**24; > > type Gonna_Work_And_Language_Lawyers_Will_Not_Complain_Type is > delta The_Delta range - 360.0 .. 360.0 - The_Delta; > for Gonna_Work_And_Language_Lawyers_Will_Not_Complain_Type'Size > use 24; You didn't specify a value for T'Small. And why on earth did you say 360 - The_Delta for T'Last??? 360 should work fine...