comp.lang.ada
 help / color / mirror / Atom feed
* Converting string to float and integer
@ 2000-01-09  0:00 Daniel Platt
  2000-01-09  0:00 ` Richard D Riehle
  2000-01-09  0:00 ` Matthew Heaney
  0 siblings, 2 replies; 3+ messages in thread
From: Daniel Platt @ 2000-01-09  0:00 UTC (permalink / raw)


Hi,

I am tring to convert a string into a float and/or integer.

Ihave tried integer(string), but I get illegal operand for numeric
conversion.

eg code.
answer := Integer(string(1..2));

I am using Gnat Ada (95)

Any help would be greatful.
thanks

Dan.
dan-news@ofdan.co.uk







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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-09  0:00 Converting string to float and integer Daniel Platt
2000-01-09  0:00 ` Richard D Riehle
2000-01-09  0:00 ` Matthew Heaney

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