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,5bcb179dc8f1d423 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-14 14:18:24 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Formatting output Date: 14 Nov 2001 17:14:10 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1005776209 9056 128.183.220.71 (14 Nov 2001 22:16:49 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 14 Nov 2001 22:16:49 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:16546 Date: 2001-11-14T22:16:49+00:00 List-Id: 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. > -- -- Stephe