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,2b9a514a774de8f8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-29 01:52:01 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!pipehawk.demon.co.uk!not-for-mail From: john.mccabe@emrad.com.nospam (John McCabe) Newsgroups: comp.lang.ada Subject: Re: Text IO Date: Wed, 29 Aug 2001 08:50:51 GMT Organization: Emrad Ltd Message-ID: <3b8cac5b.3843987@news.demon.co.uk> References: NNTP-Posting-Host: pipehawk.demon.co.uk X-NNTP-Posting-Host: pipehawk.demon.co.uk:158.152.226.81 X-Trace: news.demon.co.uk 999075099 nnrp-13:17919 NO-IDENT pipehawk.demon.co.uk:158.152.226.81 X-Complaints-To: abuse@demon.net X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:12549 Date: 2001-08-29T08:50:51+00:00 List-Id: On 28 Aug 2001 09:19:31 -0700, mraikes@vt.edu (Matt Raikes) wrote: >I was wondering how to convert integers and floats to strings for >output to text files...someone already suggested the following: > >For convert Integers to/from Strings check out the >attributes 'Image (to) and 'Value (from) > >I couldn't get this to work though. Any other ideas?? Depends on what you're trying to do. If you're trying to assign them to a string it is awkward to use 'Image. Perhaps you should look at the Reference Manual, particularly the section of Integer_IO (or Integer_Text_IO) that defines the operations Get and Put, where the first parameter name is "To". These operations allow you to have full control over the representation of the output data and store it into a string, similar to sprintf in C. The 'Image and 'Value attribute results are, I believe, implementation dependant. Best Regards John McCabe