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 05:59:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc03.POSTED!not-for-mail From: "Jeffrey Creem" Newsgroups: comp.lang.ada References: <3F3CCB0F.543478AF@adrianhoe.nospam.com.my> <3f3db1a9$1_1@news.tm.net.my> 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: <8Vp%a.156408$Ho3.18665@sccrnsc03> NNTP-Posting-Host: 66.31.5.146 X-Complaints-To: abuse@comcast.net X-Trace: sccrnsc03 1061038788 66.31.5.146 (Sat, 16 Aug 2003 12:59:48 GMT) NNTP-Posting-Date: Sat, 16 Aug 2003 12:59:48 GMT Organization: Comcast Online Date: Sat, 16 Aug 2003 12:59:48 GMT Xref: archiver1.google.com comp.lang.ada:41577 Date: 2003-08-16T12:59:48+00:00 List-Id: Everyting is working fine...But when you use 'image you don't have control over # of digits that are displayed with Text_Io; procedure It_Really_Works is Angle_Delta : constant := 360.0 / 2 ** 23; type Angle is delta Angle_Delta range - 360.0 .. 360.0 - Angle_Delta; for Angle'Small use Angle_Delta; for Angle'Size use 24; package Angle_Io is new Text_Io.Fixed_Io(Angle); begin Angle_Io.Put(Item => Angle'Last, Fore => 4, Aft => 12); Text_Io.New_Line; end It_Really_Works; The above prints this.....Note that I suspect that the Ada code will be capable of printing far more digits than the C code if you would like. 359.999957084656