From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: Integer to String Conversion?
Date: 1998/12/16
Date: 1998-12-16T00:00:00+00:00 [thread overview]
Message-ID: <m3k8zsbstf.fsf@mheaney.ni.net> (raw)
In-Reply-To: 756ue7$7o3$1@nnrp1.dejanews.com
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)
next prev parent reply other threads:[~1998-12-16 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-16 0:00 Integer to String Conversion? bwefler
1998-12-16 0:00 ` Marin David Condic
1998-12-16 0:00 ` Tom Moran
1998-12-16 0:00 ` dennison
1998-12-16 0:00 ` Matthew Heaney [this message]
1998-12-18 0:00 ` dewarr
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox