Dave Weaver <> wrote:
> <> wrote:
>> Input array will include values: 4C, 49, 4C, 59
>> How to assign these values in to an array of hex value.
>
> Those are already hex values!
They cannot be hex values, because there is no such thing as a hex value.
The abstract concept of a "number" is difficult for us humans to
discuss, so we have come up with a number of different *representations*
(numeral systems) for talking about any particular number.
1010 # 2
12 # 8
10 # 10
A # 16
Those are all _different_ representations for the _same_ number.
So
Those are already represented in hex!
would have been a more accurate rejoinder.
[ snip code that converts base-16 to base-10 ]
> Your question is too vague
Right. I'm sure you know all of the above, but I hope that it will
help the OP compose an answerable question.
--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas