* Help! How to ......?
@ 1994-10-01 6:51 JASON ~{UES}3I~}
1994-10-04 18:07 ` James A. Krzyzanowski
0 siblings, 1 reply; 2+ messages in thread
From: JASON ~{UES}3I~} @ 1994-10-01 6:51 UTC (permalink / raw)
Hi,
I am new in writing DEC ada program. Currently I am facing a problem
that I can't get the length, i_length, of an integer i by using the
following assignment operation:
i_length := STRING'LENGTH(INTEGER'IMAGE(i));
What did I miss?
Besides, how can I convert a character in '0'..'9' to its corresponding
integer value, i.e. in 1..9.?
So would you please send me the solution to my e-mail address?
Thanks in advance!
Regards,
--
_/_/_/_/_/_/ _/_/ _/_/_/_/ _/_/_/_/ _/ _/ _/_/_/_/_/_/_/_/_/_/
_/ _/ _/ _/_/ _/ _/ _/_/ _/ _/ ~{UES}3I~} _/
_/ _/_/_/_/ _/_/ _/ _/ _/ _/_/ _/ yschung2@se.cuhk.hk _/
_/_/ _/ _/ _/_/_/_/ _/_/_/_/ _/ _/ _/_/_/_/_/_/_/_/_/_/_/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Help! How to ......?
1994-10-01 6:51 Help! How to ......? JASON ~{UES}3I~}
@ 1994-10-04 18:07 ` James A. Krzyzanowski
0 siblings, 0 replies; 2+ messages in thread
From: James A. Krzyzanowski @ 1994-10-04 18:07 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-10-04 18:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-10-01 6:51 Help! How to ......? JASON ~{UES}3I~}
1994-10-04 18:07 ` James A. Krzyzanowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox