From: Keith Thompson <kst-u@mib.org>
Subject: Re: Ada decimal types
Date: Sat, 06 May 2006 08:59:48 GMT
Date: 2006-05-06T08:59:48+00:00 [thread overview]
Message-ID: <lnmzdvttoc.fsf@nuthaus.mib.org> (raw)
In-Reply-To: UwM6g.5985$Gg.392@twister.nyroc.rr.com
"REH" <me@you.com> writes:
[...]
> I do know how fixed points "work." You are making assumptions about my
> expectations and the standard. Both of which are wrong. The internal of
> the decimal type are not defined by the standard. It could be stored at
> integers; it could be BCD. I personally don't care how it is stored. I
> just know that Ada guarantees me that if my delta is 1.0e6, it can represent
> every multiple of it within my range. You can specualate all you want about
> how it "works." I just care that it does.
I think you mean 1.0e-6, not 1.0e6.
And it's the small, not the delta, that needs to be 1.0e-6. If you
specify a delta of 1.0e-6 for an ordinary fixed-point type without
specifying the small, you'll (probabaly) get a small of 2.0**-20.
(As you probably know.)
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
next prev parent reply other threads:[~2006-05-06 8:59 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-04 15:23 Ada decimal types REH
2006-05-04 18:17 ` Jeffrey R. Carter
2006-05-04 22:20 ` REH
2006-05-05 9:14 ` Stephen Leake
2006-05-05 11:33 ` REH
2006-05-05 16:49 ` tmoran
2006-05-05 18:08 ` REH
2006-05-05 18:49 ` tmoran
2006-05-05 18:59 ` REH
2006-05-06 8:59 ` Keith Thompson [this message]
2006-05-06 14:01 ` REH
2006-05-06 15:48 ` Simon Wright
2006-05-06 16:39 ` REH
2006-05-08 21:19 ` Randy Brukardt
2006-05-09 23:21 ` REH
2006-05-10 1:08 ` Keith Thompson
2006-05-10 5:37 ` Simon Wright
2006-05-10 12:22 ` REH
2006-05-10 20:47 ` Randy Brukardt
2006-05-10 21:26 ` REH
2006-05-10 20:52 ` Randy Brukardt
2006-05-11 5:51 ` Simon Wright
2006-05-11 22:33 ` Randy Brukardt
2006-05-05 20:32 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox