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,ec207d04b64c2261 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-05 11:15:25 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Convert ASCII numerals to Integer numbers References: X-Newsreader: Tom's custom newsreader Message-ID: <03gb7.32954$Kd7.20393412@news1.rdc1.sfba.home.com> Date: Sun, 05 Aug 2001 18:15:24 GMT NNTP-Posting-Host: 24.7.82.199 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.sfba.home.com 997035324 24.7.82.199 (Sun, 05 Aug 2001 11:15:24 PDT) NNTP-Posting-Date: Sun, 05 Aug 2001 11:15:24 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:11322 Date: 2001-08-05T18:15:24+00:00 List-Id: >link asdf12 asdf23 25 > >I pickup the 25 as text and I want to be able to place the 25 as an >integer in a variable to pass to a linked list. v := integer'value(input(last-1 .. last)); or use ada.text_io.integer_io to read from the string. You may want to check first that they are really digits, and the number isn't too big to fit in an integer, etc. Or at least expect the exception when the input is screwed up.