comp.lang.ada
 help / color / mirror / Atom feed
From: Jacob Sparre Andersen <sparre@nbi.dk>
Subject: Re: Convert ASCII numerals to Integer numbers
Date: Sun, 05 Aug 2001 19:34:43 +0200
Date: 2001-08-05T19:34:43+02:00	[thread overview]
Message-ID: <3B6D83B3.84D0314E@nbi.dk> (raw)
In-Reply-To: h1uqmto63djje1sgg1futccs5adbsvkokf@4ax.com

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."



  reply	other threads:[~2001-08-05 17:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-05 16:58 Convert ASCII numerals to Integer numbers Stewart
2001-08-05 17:34 ` Jacob Sparre Andersen [this message]
2001-08-05 17:57   ` Stewart
2001-08-05 18:13     ` martin.m.dowie
2001-08-05 18:15     ` tmoran
2001-08-06 16:09 ` Adrian Knoth
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox