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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,be28f9de3e9d4e8f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-16 11:32:59 PST Path: supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.mindspring.net!not-for-mail From: Lao Xiao Hai Newsgroups: comp.lang.ada Subject: Re: Ascii keyword?? Date: Fri, 16 Feb 2001 11:29:47 -0800 Organization: AdaWorks Software Engineering Message-ID: <3A8D7FAB.FC6D4A40@ix.netcom.com> References: <3A8D72D4.BBB57470@blueyonder.co.uk> Reply-To: richard@adaworks.com NNTP-Posting-Host: 3f.35.b3.8d Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Server-Date: 16 Feb 2001 19:32:58 GMT X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:5311 Date: 2001-02-16T19:32:58+00:00 List-Id: Richard wrote: > ok am new to this ada thing, so is there a package and/or keyword i can > use to convert a decimal number to a acsii character and vice versa > > thanks :) The problem of converting a numeric value to a string and vice versa is quite nicely addressed in package Ada.Text_IO. For example, if you have a floating point type, you can instantiate Ada.Text_IO.Float_IO. There are GET and PUT operations available from that instantiation to convert a string to a floating point value or get a floating point value from a string. This same feature is available for all the numeric types: integers, decimal, fixed-point, and modular. Richard Riehle