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-18 03:05:52 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!feed2.news.rcn.net!rcn!nntp.abs.net!ash.uu.net!lore.csc.com!baen1673807.greenlnk.net!baen1673807!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: float with 24-bit resolution Date: Mon, 18 Aug 2003 11:04:46 +0100 Organization: BAE SYSTEMS Message-ID: <3f40a43e@baen1673807.greenlnk.net> References: <3F3CCB0F.543478AF@adrianhoe.nospam.com.my> NNTP-Posting-Host: 20.44.240.16 X-Trace: lore.csc.com 1061201135 14524 20.44.240.16 (18 Aug 2003 10:05:35 GMT) X-Complaints-To: abuse@news.csc.com NNTP-Posting-Date: Mon, 18 Aug 2003 10:05:35 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Original-NNTP-Posting-Host: glkc1363740.sd.edinbr.gmav.gecm.com X-Original-Trace: 18 Aug 2003 11:02:38 +0100, glkc1363740.sd.edinbr.gmav.gecm.com Xref: archiver1.google.com comp.lang.ada:41674 Date: 2003-08-18T11:04:46+01:00 List-Id: "Simon Wright" wrote in message news:x7vfzk0o6am.fsf@smaug.pushface.org... [snip] > to OP: in Ada, there are *real* numbers (which can have non-integer > values): the way in which real numbers can be represented is either in > floating-point or fixed-point. floating-point format has a mantissa > and an exponent, and corresponds to C float or double; fixed-point has > no exponent, and no C analog either, it's just 'int where the least > significant bit represents (in your case) 2**-24'. Don't forget that 'fixed-point' is itself sub-divided into 2 categories: 'ordinary' and 'decimal', though I've never found a need for the 'decimal' flavour myself :-)