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,ec207d04b64c2261 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-05 10:34:44 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news1.ebone.net!news.ebone.net!news.net.uni-c.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Convert ASCII numerals to Integer numbers Date: Sun, 05 Aug 2001 19:34:43 +0200 Organization: Centre for Chaos and Turbulence Studies, Niels Bohr Institute Message-ID: <3B6D83B3.84D0314E@nbi.dk> References: NNTP-Posting-Host: alf.nbi.dk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.net.uni-c.dk 997032883 15040 130.225.212.55 (5 Aug 2001 17:34:43 GMT) X-Complaints-To: usenet@news.net.uni-c.dk NNTP-Posting-Date: Sun, 5 Aug 2001 17:34:43 +0000 (UTC) X-Mailer: Mozilla 4.78 [en] (X11; U; OSF1 V4.0 alpha) X-Accept-Language: fo,da,no,sv,is,de,fr,en Xref: archiver1.google.com comp.lang.ada:11319 Date: 2001-08-05T19:34:43+02:00 List-Id: Stewart: > I now want to get the last three characters and convert them to > integers To integers as in the character position in the ASCII (ISO-646) code table? Or to integers as in mapping '0' to 0, '1' to '1', etc.? I think Character'Pos will solve the first problem for you. The second problem could for example be handled with a character indexed array. Jacob -- "Unix, Perl og Ole har man for at slippe for at g�re arbejdet selv."