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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Re : Simple call of Procedure with Ada.float_text_IO.Get Date: Wed, 04 Nov 2015 10:30:29 +0000 Organization: A noiseless patient Spider Message-ID: References: <87h9l4eeon.fsf@adaheads.sparre-andersen.dk> <39131715-ea95-4188-93a1-a9819aa5472b@googlegroups.com> <87d1vse2nk.fsf@adaheads.sparre-andersen.dk> <590d628d-41d5-454e-ae4d-a3c72e0ac698@googlegroups.com> <097ed1af-f5a3-4b91-843c-124ae349a49a@googlegroups.com> <117ec1cb-834e-4aef-8449-0aa32c05fd27@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="2d7699570724a9a82a760842267e2c56"; logging-data="15053"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IrPDYW5J5rHTLRxGTDBi2FD/IEzy7QwQ=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:WiGIYnqI18VYX693NX7j1nD+3Pg= sha1:1ocJ9iZUNUlPXENFbC/+Hb+Ww4U= Xref: news.eternal-september.org comp.lang.ada:28209 Date: 2015-11-04T10:30:29+00:00 List-Id: comicfanzine@gmail.com writes: >> The first one reads from standard input (the ARM doesn't explicitly say >> this), and leaves standard input positioned after the last character of >> the float number read. >> >> The second one reads from the string From, and Last contains "the index >> value such that From(Last) is the last character read" (not sure if >> that's the last character of the number, or one past it, I'd have to >> experiment). >> >> So which do you want? > The first one because i don't want procedure get to read a String , i > only want it to read a numeric_literal(float input) enter by the user > of the program . Well then, F : Float; begin Get (Item => F);