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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3ba73a8167aad747 X-Google-Attributes: gid103376,public From: mab@dst1.wdl.loral.com (Mark A Biggar) Subject: Re: Hex to Dez conversion? Date: 1996/06/10 Message-ID: <4phf1j$h13@wdl1.wdl.loral.com>#1/1 X-Deja-AN: 159448298 distribution: world references: <31bb2122.5a455349@zesi.ruhr.de> organization: Loral Western Development Labs newsgroups: comp.lang.ada Date: 1996-06-10T00:00:00+00:00 List-Id: In article <31bb2122.5a455349@zesi.ruhr.de> haug@zesi.ruhr.de (Haug Buerger) writes: > has anybody code to convert a string with a hex number to an >integer? I think Ada 95 has lots of possibilities with charsets >and conversion functions. Has anybody code that uses it? Assuming the string contains just the hex number (i.e., has no spaces in it, etc.) the following should work: Int := Integer'VALUE("16#" & Str & "#"); -- Mark Biggar mab@wdl.loral.com