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!border2.nntp.dca.giganews.com!nntp.giganews.com!atl-c08.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Ada decimal types References: <1146756192.545514.109110@i39g2000cwa.googlegroups.com> From: Stephen Leake Date: Fri, 05 May 2006 05:14:25 -0400 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:Dg3xCAUiJKpiM/pwvRJ2UVKDofo= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 70aa2445b177a63d295bf02926 Xref: g2news2.google.com comp.lang.ada:4090 Date: 2006-05-05T05:14:25-04:00 List-Id: "REH" writes: > 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? Instead of what? you didn't say what type the 32 bit values have. I would use a fixed point type, not a decimal type. I would also use a 64 bit fixed point type, rather than a split record, but you probably can't change that. -- -- Stephe