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,a6692a7d92b3309b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-08 23:04:04 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!dedekind.zen.co.uk!zen.net.uk!demorgan.zen.co.uk!194.72.9.35.MISMATCH!news-peer1!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: Converting numbers to strings without Ada.Text_IO? Date: Fri, 9 Apr 2004 06:03:45 +0000 (UTC) Organization: BT Openworld Message-ID: References: NNTP-Posting-Host: host81-129-16-62.in-addr.btopenworld.com X-Trace: sparta.btinternet.com 1081490625 17299 81.129.16.62 (9 Apr 2004 06:03:45 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Fri, 9 Apr 2004 06:03:45 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MSMail-Priority: Normal X-Priority: 3 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Xref: archiver1.google.com comp.lang.ada:6882 Date: 2004-04-09T06:03:45+00:00 List-Id: > >> Well, my question is: how could in convert integer and real numbers > >> portably into strings without using Ada.Text_IO? > > > > You could copy the algorithm GNAT uses for conversions from > > Ada.Text_IO into your own package (with appropriate copyrighting kept) > > You could also simply call the 'Image attribute of the integer or > real number. My assumption (which could be wrong!) is the OP is using Ada.Text_IO.* to get access to finer levels of formatting the 'Image offers. Cheers -- Martin