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,f822ae7b0f7433c1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon02.news.prodigy.net!prodigy.net!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Translating an embedded C algorithm Date: Thu, 18 Jan 2007 19:45:53 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1168871816.263502.212100@11g2000cwr.googlegroups.com> <45acc0c3$0$22514$39db0f71@news.song.fi> <45af9c60$0$22524$39db0f71@news.song.fi> <4oPrh.311075$FQ1.296438@attbi_s71> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1169167553 26306 192.74.137.71 (19 Jan 2007 00:45:53 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 19 Jan 2007 00:45:53 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:xEow4LsGP3BrwLlkwdLpU7tcvoE= Xref: g2news2.google.com comp.lang.ada:8294 Date: 2007-01-18T19:45:53-05:00 List-Id: Jeffrey Carter writes: > Robert A Duff wrote: >> Niklas Holsti writes: >> I didn't read your whole post carefully. It looks good, but: >> >>> type Celsius_T is delta 0.1 digits 5 range -40.0 .. 120.0; >> I think you might want: >> for Celsius_T'Small use Celsius_T'Delta; >> here. > > ARM 3.5.9: "For a decimal fixed point type, the small equals the delta; > the delta shall be a power of 10." Yes, you're right. I was wrong. Thanks. - Bob