comp.lang.ada
 help / color / mirror / Atom feed
* strings to floats/integers
@ 1998-08-26  0:00 Mr Pinga
  1998-08-26  0:00 ` Richard D Riehle
  1998-09-03  0:00 ` Bob Fletcher
  0 siblings, 2 replies; 6+ messages in thread
From: Mr Pinga @ 1998-08-26  0:00 UTC (permalink / raw)


can anyone tell me how to convert a string to a float and/or integer??

i need to go from the form mystring := "123.4567" to the form myfloat
:= 123.4567

or mystring := "12345" to myinteger := 12345

please, I am getting quite desperate. I have looked all through the
ADA95 reference manual, and looked all over the WWW but i cant find
anything.  The closest i have found is Unchecked_Conversion but it
converts things to gibberish so mystring := "3" becomes myfloat :=
0.0E000 etc etc

any info greatly appreciated

Jared

ps. Please email me if possible because i dont have a proper usenet
connection





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1998-09-03  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-08-26  0:00 strings to floats/integers Mr Pinga
1998-08-26  0:00 ` Richard D Riehle
1998-08-26  0:00   ` David C. Hoos, Sr.
1998-08-26  0:00     ` Richard D Riehle
1998-08-29  0:00   ` Matthew Heaney
1998-09-03  0:00 ` Bob Fletcher

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