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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,88c932f716f86f68 X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: Integer to String Conversion? Date: 1998/12/16 Message-ID: #1/1 X-Deja-AN: 422755571 Sender: matt@mheaney.ni.net References: <756ue7$7o3$1@nnrp1.dejanews.com> NNTP-Posting-Date: Tue, 15 Dec 1998 20:42:09 PDT Newsgroups: comp.lang.ada Date: 1998-12-16T00:00:00+00:00 List-Id: bwefler@my-dejanews.com writes: > Does anyone know an Ada-83 compatible method to convert an integer to a > string, so that the string may be concatenated with another string, and the > resulting string passed as a parameter to a function call? (Note: I am not > talking about using Text_IO or Integer_IO in this case; I simply want the > result to be a string. Another function will take care of the string.) This has to be the number one FAQ these days: X : Integer; ... Put ("this is a string" & Integer'Image (X)); Integer'Value goes the other way, and converts a string into an integer. It'll even convert alternate bases, ie Integer'Value ("16#A#") returns the value 10 (decimal)