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,7a2d45f282a1da1c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-08-16 08:32:47 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread3.news.pas.earthlink.net.POSTED!not-for-mail From: "Matthew Heaney" Newsgroups: comp.lang.ada References: <3F3CCB0F.543478AF@adrianhoe.nospam.com.my> <3f3cd7f4$1_2@news.tm.net.my> <3F3CE28D.B841A191@raytheon.com> <3F3D10B7.9080707@attbi.com> Subject: Re: float with 24-bit resolution X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: Date: Sat, 16 Aug 2003 15:32:46 GMT NNTP-Posting-Host: 65.110.133.134 X-Complaints-To: abuse@earthlink.net X-Trace: newsread3.news.pas.earthlink.net 1061047966 65.110.133.134 (Sat, 16 Aug 2003 08:32:46 PDT) NNTP-Posting-Date: Sat, 16 Aug 2003 08:32:46 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:41587 Date: 2003-08-16T15:32:46+00:00 List-Id: "Robert I. Eachus" wrote in message news:3F3D10B7.9080707@attbi.com... > > I'll ask the same question a different way. Using fixed-point > arithmetic correctly is HARD. Are you sure you are interested in the > learning experience you will get? In Ada, getting the declarations of > fixed point types correct is not hard, and writing the code for a > calculation may be very easy. The immediate problem of the OP is to get the data off of the hardware interface. To do that you need a fixed point type. After you have the value, then yes, you need to understand the arithmetic model, but as you say this is a problem no matter what the programming language.