comp.lang.ada
 help / color / mirror / Atom feed
From: mab@dst1.wdl.loral.com (Mark A Biggar)
Subject: Re: Hex to Dez conversion?
Date: 1996/06/10
Date: 1996-06-10T00:00:00+00:00	[thread overview]
Message-ID: <4phf1j$h13@wdl1.wdl.loral.com> (raw)
In-Reply-To: 31bb2122.5a455349@zesi.ruhr.de


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






      parent reply	other threads:[~1996-06-10  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-09  0:00 Hex to Dez conversion? Haug Buerger
1996-06-09  0:00 ` Robert Dewar
1996-06-10  0:00 ` Walter B. Hollman Sr.
1996-06-10  0:00 ` Mark A Biggar [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