From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: Data conversion
Date: 1998/10/31
Date: 1998-10-31T00:00:00+00:00 [thread overview]
Message-ID: <7RakvAPB#GA.171@samson.airnet.net> (raw)
In-Reply-To: 71fcr5$9to@sifon.cc.mcgill.ca
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 845 bytes --]
Mat & Syl wrote in message <71fcr5$9to@sifon.cc.mcgill.ca>...
>I need a function to convert float to string and other one for string to
>float.
The language attributes 'Image, and 'Value, respectively, do just that.
Here are the appropriate excerpts from Annex K of the Ada95 Reference
Manual:
88 S�Image For every scalar subtype S:
89 S�Image denotes a function with the following specification:
90 function S'Image(Arg : S'Base)
return String
91 The function returns an image of the value of Arg as a String. See 3.5.
264 S�Value For every scalar subtype S:
265 S�Value denotes a function with the following specification:
266 function S'Value(Arg : String)
return S'Base
267 This function returns a value given an image of the value as a String,
ignoring any leading or trailing spaces. See 3.5.
David C. Hoos, Sr.
next prev parent reply other threads:[~1998-10-31 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-31 0:00 Data conversion Mat & Syl
1998-10-31 0:00 ` dewarr
1998-10-31 0:00 ` David C. Hoos, Sr. [this message]
1998-10-31 0:00 ` Pascal MALAISE
1998-11-01 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