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,91965a012526b259 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!news.glorb.com!newsfeed-east.nntpserver.com!nntpserver.com!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Float to String References: <419241CE.7020205@mailinator.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <%8ukd.23106$KJ6.19297@newsread1.news.pas.earthlink.net> Date: Wed, 10 Nov 2004 19:40:43 GMT NNTP-Posting-Host: 63.184.104.23 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.pas.earthlink.net 1100115643 63.184.104.23 (Wed, 10 Nov 2004 11:40:43 PST) NNTP-Posting-Date: Wed, 10 Nov 2004 11:40:43 PST Xref: g2news1.google.com comp.lang.ada:6129 Date: 2004-11-10T19:40:43+00:00 List-Id: Marius Amado Alves wrote: > I have 64 bits available, so I define a 15 digits float > > type Float_64 is > digits 15 > range -16#0.FFFF_FFFF_FFFF_F8#E+256 > .. 16#0.FFFF_FFFF_FFFF_F8#E+256; > for Float_64'Size use 64; Why not just type Float_64 is digits 15; ? Or type Biggest_Float is digits System.Max_Digits; ? -- Jeff Carter "When danger reared its ugly head, he bravely turned his tail and fled." Monty Python and the Holy Grail 60