[Tutor] conversion confusion
Vicki Stanfield
vicki at thepenguin.org
Tue Sep 30 12:17:19 EDT 2003
I am trying to OR two values. These values are the hex values minus the 0x
part. If I had an ASCII 'm' for instance, I would OR the value 6D to the
existing seed value. When I try this, I get an error.
CRCval=ord(value2add) ^ ord(seed)
because the value2add is 2 characters rather than one. Is there an
established function to take a multi-character string and convert it to a
numeric value that works with OR?
--vicki
More information about the Tutor
mailing list