comp.lang.ada
 help / color / mirror / Atom feed
From: jakrzy@ss3.magec.com (James A. Krzyzanowski)
Subject: Re: Help!  How to ......?
Date: Tue, 4 Oct 1994 18:07:52 GMT
Date: 1994-10-04T18:07:52+00:00	[thread overview]
Message-ID: <Cx5uD4.vM@ss3.magec.com> (raw)
In-Reply-To: yschung2.780994260@cuse73.se.cuhk.hk

JASON ~{UES}3I~} (yschung2@cuse1.se.cuhk.hk) wrote:
: Hi,

: Besides, how can I convert a character in '0'..'9' to its corresponding
: integer value, i.e. in 1..9.?

integer_value := character'pos (digit) - character'pos ('0');
-- 
---------------------------------------------------------------------------
James A. Krzyzanowski - Senior Software Engineer - AFATDS
Magnavox Electronic Systems Company * Fort Wayne, IN 46808 * (219) 429-6446
E-Mail : jak@pseserv2.magec.com



      reply	other threads:[~1994-10-04 18:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-01  6:51 Help! How to ......? JASON ~{UES}3I~}
1994-10-04 18:07 ` James A. Krzyzanowski [this message]
replies disabled

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