comp.lang.ada
 help / color / mirror / Atom feed
From: "daniel gaudry" <Daniel.Gaudry@wanadoo.fr>
Subject: Re: converting strings to floats/integers
Date: 1998/08/26
Date: 1998-08-26T00:00:00+00:00	[thread overview]
Message-ID: <6s1qh2$nlh$1@platane.wanadoo.fr> (raw)
In-Reply-To: 6s13es$5c8$1@nnrp1.dejanews.com

it easy if you know how

that's the manual

27 procedure Get(From : in String; Item : out Num; Last : out Positive);

28 Reads a real value from the beginning of the given string, following the
same rule as the Get procedure that reads a real value from a file, but
treating the end of the string as a file terminator. Returns, in the
parameter Item, the value of type Num that corresponds to the sequence
input. Returns in Last the index value such that From(Last) is the last
character read.
 here is an example
s : string (1..10) := "1.20      ";
f : float
l : integer;

 begin
Get(From => s;,
Item => f,
 Last => l);






      reply	other threads:[~1998-08-26  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-26  0:00 converting strings to floats/integers mrpinga
1998-08-26  0:00 ` daniel gaudry [this message]
replies disabled

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