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 09:36:27 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!wn14feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!rwcrnsc52.ops.asp.att.net.POSTED!not-for-mail Message-ID: <3F3E5D83.1070403@attbi.com> From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: float with 24-bit resolution References: <3F3CCB0F.543478AF@adrianhoe.nospam.com.my> <3F3DA81B.2070701@attbi.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 66.31.71.243 X-Complaints-To: abuse@comcast.net X-Trace: rwcrnsc52.ops.asp.att.net 1061051786 66.31.71.243 (Sat, 16 Aug 2003 16:36:26 GMT) NNTP-Posting-Date: Sat, 16 Aug 2003 16:36:26 GMT Organization: Comcast Online Date: Sat, 16 Aug 2003 16:36:26 GMT Xref: archiver1.google.com comp.lang.ada:41592 Date: 2003-08-16T16:36:26+00:00 List-Id: Matthew Heaney wrote: > "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. Oops! for Gonna_Work_And_Language_Lawyers_Will_Not_Complain_Type'Small use The_Delta; Soright? > And why on earth did you say 360 - The_Delta for T'Last??? 360 should work > fine... Because I was trying to show that, if you do subtract it off as a style issue, you should use the named number rather than a decimal approximation. -- "As far as I'm concerned, war always means failure." -- Jacques Chirac, President of France "As far as France is concerned, you're right." -- Rush Limbaugh