From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b30e93507fcd6ed9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-01 10:28:09 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!sunqbc.risq.qc.ca!headwall.stanford.edu!newsfeed.stanford.edu!feed.textport.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison Sender: usenet@www.newsranger.com References: <3A9E35F3.EE64F602@port.ac.uk> Subject: Re: Ada'83 to Ada'95 Problem Message-ID: Date: Thu, 01 Mar 2001 18:23:32 GMT NNTP-Posting-Host: 127.0.0.1 X-Complaints-To: abuse@newsranger.com X-Trace: www.newsranger.com 983471012 127.0.0.1 (Thu, 01 Mar 2001 13:23:32 EST) NNTP-Posting-Date: Thu, 01 Mar 2001 13:23:32 EST Organization: http://www.newsranger.com Xref: supernews.google.com comp.lang.ada:5361 Date: 2001-03-01T18:23:32+00:00 List-Id: 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