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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5bcb179dc8f1d423 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-15 10:49:43 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!psinet-eu-nl!psiuk-p4!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Formatting output Date: Thu, 15 Nov 2001 13:09:12 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9t10ca$5u8$1@nh.pace.co.uk> References: NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1005847754 6088 136.170.200.133 (15 Nov 2001 18:09:14 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 15 Nov 2001 18:09:14 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:16585 Date: 2001-11-15T18:09:14+00:00 List-Id: Well, to suggest a possible solution to the problem of getting a floating point number represented as currency in either a string or in output to a text file, you'll have to be a bit more specific as to what constraints you want to put on it. Ada.Text_IO.Float_IO is one means of doing it, but if you're going to rule that out, there aren't a lot of alternatives. You could potentially convert the value to a decimal fixed and use either the appendix I cited elsewhere or you're right back to Ada.Text_IO... subpackages. Or you can totally Roll-Your-Own by doing math ops on the number to get individual digits and convert the digits to characters & build your own string out of it. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Ben" wrote in message news:bf8dbe70.0111150932.536dad02@posting.google.com... > I should also correct my post by saying that FLOAT_IO is not used at > all in my current code.