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!postnews.google.com!v46g2000cwv.googlegroups.com!not-for-mail From: "REH" Newsgroups: comp.lang.ada Subject: Re: Ada decimal types Date: 4 May 2006 15:20:00 -0700 Organization: http://groups.google.com Message-ID: <1146781200.907543.238970@v46g2000cwv.googlegroups.com> References: <1146756192.545514.109110@i39g2000cwa.googlegroups.com> NNTP-Posting-Host: 192.35.35.35 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1146781206 1885 127.0.0.1 (4 May 2006 22:20:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 4 May 2006 22:20:06 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: v46g2000cwv.googlegroups.com; posting-host=192.35.35.35; posting-account=lnUIyw0AAACoRB2fMF2SFTIilm8F10q2 Xref: g2news2.google.com comp.lang.ada:4080 Date: 2006-05-04T15:20:00-07:00 List-Id: Jeffrey R. Carter wrote: > REH wrote: > > We are in the process of converting our software from '83 to '95, and > > have the opportunity to port over to some of the new features 95 > > provides. We have a 64-bit mission time that is represented as a > > record of two 32-bit values (one for seconds and one for microseconds). > > Is it advantagous to use: > > > > type Mission_Time_Type is delta 1.0e-6 digits 16 range 0.0 .. (2.0**32) > > - 1.0; > > > > instead? I was thinking this would make the math easier and less > > "klunky." Are there any ramifications of using decimal types that I > > should be aware of? I can't find any info. that goes in depth on the > > subject. > > Are you sure you still need your own type? Ada.Real_Time may do what you > need. > Hi Jeff. I didn't think of the real-time annex. I will look into it. Thanks. REH