comp.lang.ada
 help / color / mirror / Atom feed
* Converting Integer / Float to String
@ 2008-07-17  7:49 Alexander Camek
  2008-07-17  8:05 ` anon
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Alexander Camek @ 2008-07-17  7:49 UTC (permalink / raw)


Hi List,

is there another way to convert a given String to an Integer or Float type?

I am currently using some code like this:

begin
Value :=Float'Value(Float_String);
exception
when Constraint_Error => Value := 0.0;
end;

For me this is very ugly and a big hack.
Thanks for any idea.

Greetings

Alexander 





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

end of thread, other threads:[~2008-07-20  0:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-17  7:49 Converting Integer / Float to String Alexander Camek
2008-07-17  8:05 ` anon
2008-07-17  8:15 ` Dmitry A. Kazakov
2008-07-17  8:32   ` Alexander Camek
2008-07-17  9:24     ` Dmitry A. Kazakov
2008-07-20  0:28 ` JPWoodruff

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