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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8c82f96c3f1dff70 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-16 07:59:31 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Working with Scaled Integers Date: 16 Oct 2001 10:58:10 -0400 Organization: NASA Goddard Space Flight Center Message-ID: References: <3BC8D083.E6503BC3@pacbell.net> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1003244402 27531 128.183.220.71 (16 Oct 2001 15:00:02 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 16 Oct 2001 15:00:02 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:14686 Date: 2001-10-16T15:00:02+00:00 List-Id: "Andrew" writes: > We are tied to using existing types because our package specs are generated > by tools. Hmm. This raises two questions. 1) If the tool writes the code for you, why do you need to "understand" it better? I suppose you don't trust the tool; probably wise. 2) If the tool claims to be generating Ada code, but is not using fixed point types for scaled integers, it is broken. It probably also supports C output, but that's no excuse! Time for a new tool. > > > -------------------------------------------------------------- > Andrew > > > > "R. Tim Coslet" wrote in message > news:3BC8D083.E6503BC3@pacbell.net... > > Instead of "scaled integers" look at Ada's Fixed Point real types. > > > > For "BCD" types use Ada's Decimal types. > > > > Andrew wrote: > > > > > Developing/maintaining Ada code that processes 1553 bus data. I have a > basic > > > understanding of working with scaled integers. But I'd like to learn > more. > > > Specifically, working with semi-circles, how to specify data resolution > > > (LSB), BCD etc. My understanding in this area is somewhat weak and I > need > > > to correct it. > > > > > > thanks; > > > > > > -------------------------------------------------------------- > > > Andrew > > > -- -- Stephe