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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,5f764f1f7822ab9c X-Google-Attributes: gid103376,public From: David Kristola Subject: Re: Top 10 Language Constructs (Ada) Date: 2000/07/19 Message-ID: <01HW.B59ADC0E00A9E0BC078EC70C@news.pacbell.net>#1/1 X-Deja-AN: 648155416 Content-Transfer-Encoding: 8bit References: <8kmjja$l5h$1@pollux.ip-plus.net> <3970F56F.F3A70FAD@icdc.com> <01HW.B59982450058903A078EC70C@news.pacbell.net> <39751555.4E40A4A7@lmco.com> Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@pacbell.net X-Trace: news.pacbell.net 964005367 63.194.212.92 (Wed, 19 Jul 2000 04:16:07 PDT) Organization: heaps of stacks User-Agent: Hogwasher 2.0 (Macintosh) MIME-Version: 1.0 NNTP-Posting-Date: Wed, 19 Jul 2000 04:16:07 PDT Newsgroups: comp.lang.ada Date: 2000-07-19T00:00:00+00:00 List-Id: On Tue, 18 Jul 2000 19:41:25 -0700, Bill Brennan wrote (in message <39751555.4E40A4A7@lmco.com>): > Actually, this doesn't compile in GNAT, I presume because it rounds > Plasma_Volts_Type'Last to something which won't fit in 16 bits. > > Besides the fact that this type definition isn't portable (for GNAT anyway), > it doesn't really reflect what you're trying to say. Without your > description, I would have no idea that 0.00012207 ~= 2^(-13) or that > 3.99987793 ~= 4 - 2^(-13). Idiot me. :-) I punched 2^(-13) into my calculator, and entered the value i got into my code. I should have either used binary (as you suggested) or "2 ** (-13)" as Dr. Schr�er suggested. There's nothing like making a fool of yourself for all the world to see. ;-) -- --djk, keeper of arcane lore & trivial fluff Home: David95036 plus 1 at america on-line Spam: goto.hades@welovespam.com