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!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada decimal types References: <1146756192.545514.109110@i39g2000cwa.googlegroups.com> In-Reply-To: <1146756192.545514.109110@i39g2000cwa.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.176 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1146766620 12.201.97.176 (Thu, 04 May 2006 18:17:00 GMT) NNTP-Posting-Date: Thu, 04 May 2006 18:17:00 GMT Date: Thu, 04 May 2006 18:17:00 GMT Xref: g2news2.google.com comp.lang.ada:4070 Date: 2006-05-04T18:17:00+00:00 List-Id: 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. -- Jeff Carter "All citizens will be required to change their underwear every half hour. Underwear will be worn on the outside, so we can check." Bananas 29