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.9 required=5.0 tests=BAYES_00,HK_RANDOM_FROM 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 09:32:02 PST Path: archiver1.google.com!news1.google.com!postnews1.google.com!not-for-mail From: cptnben@gisco.net (Ben) Newsgroups: comp.lang.ada Subject: Re: Formatting output Date: 15 Nov 2001 09:32:02 -0800 Organization: http://groups.google.com/ Message-ID: References: NNTP-Posting-Host: 24.169.107.241 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1005845522 16488 127.0.0.1 (15 Nov 2001 17:32:02 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 15 Nov 2001 17:32:02 GMT Xref: archiver1.google.com comp.lang.ada:16581 Date: 2001-11-15T17:32:02+00:00 List-Id: Actually it was a homework problem. This was the first assigned lab from my 1999 Introductory Programming class (PASCAL). Now in my Junior year, I am in an upper level Programming Languages course. Our final project was to write a manual on an assigned language (mine was 35 pages) I got Ada. One of the things we have to do is give a 2.5 hour presentation on the language, and assign homework based on your presentation and manual. I recycled this lab since it is fairly simple. Now I am trying to convert it from the original PASCAL to Ada so I can have a working program before I assign it with my presentation in two weeks. I should also correct my post by saying that FLOAT_IO is not used at all in my current code. Thanks, Ben Stephen Leake wrote in message news:... > cptnben@gisco.net (Ben) writes: > > > I am using the Linux version of the GNAT Ada compiler. > > > > I am trying to format a floating point output from Scientific Notation > > to a US currency standard. I am new to Ada and the only library I am > > using is TEXT_IO. I don't know for certain what I have available for > > other libraries. > > How might one make the following code (simple program) output the > > final results (TotFly and TotDri) as U.S. currency. > > This sounds like a homework problem, so I'll only give a hint; look at > the parameters Fore and Aft in Ada.Text_IO.Float_IO. Then go ask your > instructor, and your textbook. > > If this is not a homework problem, and that does not help, come back > for more. > > >