comp.lang.ada
 help / color / mirror / Atom feed
From: Samuel Tardieu <sam@ada.eu.org>
To: mrpinga@my-dejanews.com
Subject: Re: Converting Strings to Floats and/or Integers
Date: 1998/08/26
Date: 1998-08-26T00:00:00+00:00	[thread overview]
Message-ID: <m37lzv4xlx.fsf@zaphod.enst.fr> (raw)
In-Reply-To: 6s11ju$2sq$1@nnrp1.dejanews.com

>>>>> "Jared" == mrpinga  <mrpinga@my-dejanews.com> writes:

Jared> if mystring := "4.56" i need to be able to convert this to
Jared> myfloat := 4.56 or even going from mystring := "456" to
Jared> myinteger := 456 would be a start.

   declare
      F : Float;
      I : Integer;
   begin
      F := Float'Value ("4.56");
      I := Integer'Value ("456");
   end;

  Sam
-- 
Samuel Tardieu -- sam@ada.eu.org




      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 and/or Integers mrpinga
1998-08-26  0:00 ` Samuel Tardieu [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