From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: No FAQ? A stupid question, then?
Date: 1998/11/27
Date: 1998-11-27T00:00:00+00:00 [thread overview]
Message-ID: <m3vhk1bdyx.fsf@mheaney.ni.net> (raw)
In-Reply-To: 365E787B.896BFA0C@eucmax.sim.ucm.es
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 622 bytes --]
"Ricardo Palomares Mart�nez" <ricardo@eucmax.sim.ucm.es> writes:
> My problem is simple: I need to get the string expression of integer
> and real numbers (the usual Str(number) of other languages), but I'm
> unable (that wouldn't be surprising if you did know me :-) ) to get the
> equivalent function looking around the Ada reference (the HTML files
> which came with GNAT 3.07 for MS-DOS).
The attribute T'Image returns the string form of a number, ie
S : String := Integer'Image (42);
You can go the other way, and get the value that corresponds to a
string:
I : Integer := Integer'Value ("42");
next prev parent reply other threads:[~1998-11-27 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-27 0:00 No FAQ? A stupid question, then? Ricardo Palomares Martínez
1998-11-27 0:00 ` David Botton
1998-11-27 0:00 ` Matthew Heaney [this message]
1998-11-27 0:00 ` Stuart Palin
1998-11-30 0:00 ` Ricardo Palomares Martínez
1998-12-01 0:00 ` Tom Moran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox