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!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s71.POSTED!53ab2750!not-for-mail From: Jeffrey Carter User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.1) Gecko/20060130 SeaMonkey/1.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Translating an embedded C algorithm References: <1168871816.263502.212100@11g2000cwr.googlegroups.com> <45acc0c3$0$22514$39db0f71@news.song.fi> <45af9c60$0$22524$39db0f71@news.song.fi> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4oPrh.311075$FQ1.296438@attbi_s71> NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s71 1169146496 12.201.97.213 (Thu, 18 Jan 2007 18:54:56 GMT) NNTP-Posting-Date: Thu, 18 Jan 2007 18:54:56 GMT Organization: AT&T ASP.att.net Date: Thu, 18 Jan 2007 18:54:56 GMT Xref: g2news2.google.com comp.lang.ada:8275 Date: 2007-01-18T18:54:56+00:00 List-Id: 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."