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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,37c1f61bd0b7914 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!2g2000hsn.googlegroups.com!not-for-mail From: jedivaughn Newsgroups: comp.lang.ada Subject: Re: Converting Type Characters to type string Date: Tue, 1 Apr 2008 06:22:49 -0700 (PDT) Organization: http://groups.google.com Message-ID: <25b98c63-ef00-4f5f-aa63-169dbcedde8b@2g2000hsn.googlegroups.com> References: <8f5967a7-17ab-4eda-80fc-5cb58ae011f5@s50g2000hsb.googlegroups.com> <2d291584-9cb9-4a3f-8626-7b7066e60566@59g2000hsb.googlegroups.com> <5052229e-61c3-401d-93b6-a95edee29e58@m71g2000hse.googlegroups.com> <76c5beff-f3e9-44ae-ab96-7da01ea17a65@s37g2000prg.googlegroups.com> <6e94c181-9133-4ad7-9048-745386d5991c@e23g2000prf.googlegroups.com> NNTP-Posting-Host: 65.221.64.118 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1207056169 2779 127.0.0.1 (1 Apr 2008 13:22:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 1 Apr 2008 13:22:49 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 2g2000hsn.googlegroups.com; posting-host=65.221.64.118; posting-account=X-qixgoAAABoVi_eyPVjiIWnxAlQQdU1 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20717 Date: 2008-04-01T06:22:49-07:00 List-Id: What I'm doing is taking the first character the user enters and looking at it to determine whether or not it is a integer roman numeral or the letter Q (for quit). if it's a integer then I need to convert the single character to a roman numeral and I take the rest of the input as a string and convert it to an integer using int := integer'value(char); so basically I then need to know how to convert the single character I used to determine whether or not the input was a integer roman numeral or the letter Q to an integer. And then I can add it to the integer to find the roman numeral vlaue. - John