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-Thread: 103376,16dbd7ecc6a3d50c X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.maxwell.syr.edu!news-rtr.nyroc.rr.com!news-out.nyroc.rr.com!twister.nyroc.rr.com.POSTED!53ab2750!not-for-mail From: "REH" Newsgroups: comp.lang.ada References: Subject: Re: Ada decimal types X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Message-ID: Date: Sat, 06 May 2006 14:01:06 GMT NNTP-Posting-Host: 69.205.134.80 X-Complaints-To: abuse@rr.com X-Trace: twister.nyroc.rr.com 1146924066 69.205.134.80 (Sat, 06 May 2006 10:01:06 EDT) NNTP-Posting-Date: Sat, 06 May 2006 10:01:06 EDT Organization: Road Runner Xref: g2news2.google.com comp.lang.ada:4115 Date: 2006-05-06T14:01:06+00:00 List-Id: "Keith Thompson" wrote in message news:lnmzdvttoc.fsf@nuthaus.mib.org... > "REH" 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. Yes. > > 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.) It's not an binary fixed point, but a decimal fixed point. I believe the small has to be a power of ten, not two. Anyways, that is a good point. For a decimal type, do I need to specify the small? Thanks, Rich