comp.lang.ada
 help / color / mirror / Atom feed
From: David Kristola <David95037@See-My.Sig>
Subject: Re: Top 10 Language Constructs (Ada)
Date: 2000/07/19
Date: 2000-07-19T00:00:00+00:00	[thread overview]
Message-ID: <01HW.B59ADC0E00A9E0BC078EC70C@news.pacbell.net> (raw)
In-Reply-To: 39751555.4E40A4A7@lmco.com

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





  parent reply	other threads:[~2000-07-19  0:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-14  0:00 Top 10 Language Constructs (Ada) Bruno Gustavs
2000-07-14  0:00 ` Andrew Hately
2000-07-14  0:00 ` Samuel T. Harris
2000-07-15  0:00   ` Simon Wright
2000-07-18  0:00     ` Nick Keighley
2000-07-14  0:00 ` David Kristola
2000-07-15  0:00 ` Marc A. Criley
2000-07-16  0:00   ` David Botton
2000-07-18  0:00   ` David Kristola
2000-07-18  0:00     ` Scott Ingram`
2000-07-18  0:00     ` Bill Brennan
2000-07-18  0:00       ` Dr. Joachim Schr�er
2000-07-19  0:00         ` Bill Brennan
2000-07-18  0:00           ` Scott Ingram`
2000-07-21  0:00         ` Keith Thompson
2000-07-25  0:00           ` Dr. Joachim Schr�er
2000-07-25  0:00             ` Florian Weimer
2000-07-26  0:00             ` David Kristola
2000-07-25  0:00           ` Keith Thompson
2000-07-19  0:00       ` David Kristola [this message]
2000-07-18  0:00     ` Stefan Skoglund
2000-07-24  0:00   ` Richard Riehle
2000-07-26  0:00     ` The Ada type model (was Re: Top 10 Language Constructs (Ada)) Marc A. Criley
2000-07-15  0:00 ` Top 10 Language Constructs (Ada) David Botton
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox