From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.0 required=3.0 tests=BAYES_40 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: Thu, 17 Oct 91 07:52:10 EDT From: maysee@m11.sews.wpafb.af.mil (Eric E. Mays 52202) Subject: converting integer to character Message-ID: <9110171152.AA02856@m11.sews.wpafb.af.mil> List-Id: Chris, -- Is there any easy way to convert an integer variable to a character. -- I am new to ada and would like to do this without a case statement. Assuming you are trying to convert an integer 1 to a character 1. The following statement should work. My_char := number'image; Where My_char is defined as a string of length 2. You must allow an extra character for the sign bit. Otherwise you will receive a constraint error. The above statement would work for integers 0 thru 9, assuming you defined a string of length 2. Eric Mays maysee@m11.sews.wpafb.af.mil