[Tutor] More confusion on conversion

Vicki Stanfield vicki at thepenguin.org
Thu Oct 30 17:32:37 EST 2003


>> length = 10
>> convert 10 to A
>> convert A to 0x41
>
> Down to here I get but
>
>> padded version = 0x30 0x41
>
> How is this padded to two places? 0x30 is ASCII for 48?
> Do you mean 0x20 which is a space? I will assume so...

That is how it gets weird. I have to send a 0x30 which represents a '0'. I
acknowledge that this is strange, but I did not come up with it. It is the
historical way of doing things. I will try this solution when I get back
to work tomorrow morning. Thanks.

--vicki






More information about the Tutor mailing list