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,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-08-15 05:09:02 PST Message-ID: <3F3CCB0F.543478AF@adrianhoe.nospam.com.my> Date: Fri, 15 Aug 2003 19:59:11 +0800 From: mailbox@adrianhoe.nospam.com.my X-Mailer: Mozilla 4.78 [en] (X11; U; SunOS 5.9 sun4u) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: float with 24-bit resolution Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 219.95.187.227 X-Original-NNTP-Posting-Host: 219.95.187.227 X-Trace: news.tm.net.my 1060948861 219.95.187.227 (15 Aug 2003 20:01:01 +0800) Organization: TMnet Malaysia Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!newsfeed.cs.wisc.edu!nnxp1.twtelecom.net!209.98.3.200.MISMATCH!priapus.visi.com!news-out.visi.com!petbe.visi.com!ash.uu.net!news1.tm.net.my Xref: archiver1.google.com comp.lang.ada:41498 Date: 2003-08-15T19:59:11+08:00 List-Id: Hi, I looked through the LRM and searched CLA but I could not find any solution. Perhaps I've overlook somewhere. I need a float with 24-bit resolution. My data needs to be encoded into 24 bits at a scaling of 720 degrees / 2^24 bits with the most significant bit being the sign bit. This results in a value that ranges from +359.9999571 degrees (0x7FFFFF) to -360.0000000 degrees (0x800000) at increments of approximately 4.291534424e-5 degrees per bit. The float and short_float have both 32-bit. I am using GCC3.3 that comes with SuSE Linux 8.2 on Intel x86. Is there a short_short_float for GCC 3.3? How do I declare a float with 24-bit storage size? Thanks in advance for your help. -- Adrian Hoe To email, remove "nospam" and "my"