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 X-Google-Thread: 103376,3e4c0a2cc5056b4b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-06 09:23:31 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news.osn.de!newsfeed.freenet.de!news1.dtag.de!RRZ.Uni-Koeln.DE!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Read +Inf from file/string Date: Wed, 6 Nov 2002 17:23:30 +0000 (UTC) Organization: GMUGHDU Message-ID: References: NNTP-Posting-Host: l1-hrz.uni-duisburg.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: a1-hrz.uni-duisburg.de 1036603410 7054 134.91.1.34 (6 Nov 2002 17:23:30 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Wed, 6 Nov 2002 17:23:30 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: archiver1.google.com comp.lang.ada:30470 Date: 2002-11-06T17:23:30+00:00 List-Id: "Atle R�stad" wrote: : There is no problem in writing (put) an infinite number this will produce : "+Inf****************", but how can i read (get) it? Afaik, you might have to check, because [an instance of float_IO].Get "reads the longest possible sequence of characters matching the syntax of any of the following [numeric literals]" [...] The exception Data_Error is propagated if the sequence input does not have the required syntax or if the value obtained is not of the subtype Num. (RM A.10.9(13,21)) You can always Get a string an then check it for Inf and then possibly Get a numeric literal from the string using the Get for strings. -- georg