From: Ted Dennison<dennison@telepath.com>
Subject: Re: Ada'83 to Ada'95 Problem
Date: Thu, 01 Mar 2001 18:23:32 GMT
Date: 2001-03-01T18:23:32+00:00 [thread overview]
Message-ID: <Eswn6.734$45.1044@www.newsranger.com> (raw)
In-Reply-To: 3A9E35F3.EE64F602@port.ac.uk
In article <3A9E35F3.EE64F602@port.ac.uk>, dis00109 says...
>
>I am trying to get a program to accept two integers as input by the user
>(for a university project) however in the exception handling section of
>my program it will not accept a float input as an error it merely
>ignores everything after the decimal point. This would appear to be a
>new feature in Ada'95, can anyone think of a way to solve this...PLEASE!
Well, you may be able to do better by reading the characters into a string, then
using Integer'image (and perhaps Float'image). You also may find the routines in
Ada.Strings.Fixed useful.
---
T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html
home email - mailto:dennison@telepath.com
next prev parent reply other threads:[~2001-03-01 18:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-01 11:43 Ada'83 to Ada'95 Problem dis00109
2001-03-01 14:19 ` Marin David Condic
2001-03-01 14:27 ` John English
2001-03-01 18:23 ` Ted Dennison [this message]
2001-03-01 19:29 ` Singlespeeder
2001-03-02 16:03 ` Tucker Taft
-- strict thread matches above, loose matches on Subject: below --
2001-03-01 17:39 Beard, Frank
2001-03-05 13:51 ` John English
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox