comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephen.Leake@gsfc.nasa.gov>
Subject: Re: I'm Stumped ...
Date: 1997/04/28
Date: 1997-04-28T00:00:00+00:00	[thread overview]
Message-ID: <3364AA58.1881@gsfc.nasa.gov> (raw)
In-Reply-To: 33638FBE.715C@usa.net


Ben Carter wrote:
> 
> Could anyone point me in the direction of where
> I could find examples of code or at least explain
> a method to convert a string into an integer?
> 
> Is it possible to take a string with the value :
>    '123'
> and turn it into the integer 123?
> 

Section 3.5 of the LRM discusses Scalar types, including the attribute
'Value:

(52)
	S'Value 
          S'Value denotes a function with the following specification: 

(53)
           function S'Value(Arg : String)
             return S'Base

(54)
        This function returns a value given an image of the value as a 
	String, ignoring any leading or trailing spaces. 

There are many other useful attributes in Ada.

> Thanks For your time ...
> --
> ,----------------------------------------------
> | Ben Carter
> +----------------------------------------------

You're welcome
-- 
- Stephe




  parent reply	other threads:[~1997-04-28  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-28  0:00 I'm Stumped Ben Carter
1997-04-27  0:00 ` Robert Dewar
1997-04-27  0:00 ` Matthew Heaney
1997-04-28  0:00 ` Stephen Leake [this message]
1997-04-30  0:00 ` Gautier
1997-04-30  0:00   ` Mats Weber
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox