General information
Category:
Coding, syntax & commands
>>I would like to know if somebody knows a algorithm that does the following.
>>
>>given: hex_string="0462E62fcf"
>
>There is some built-in conversion, which I don't remember now. Transform can convert the other way.
>
>If you want to do the conversion yourself, multiply the rightmost digit by 1, the second from the right by 16, the third from the right by 16^2, etc.
>
>Shortcut, without powers: Multiply the first digit by 16, add the next digit, multiply the result by 16 again, add the next digit, etc.
>
>Don't forget that A = 10, B = 11, ... F = 15.
>
>HTH, Hilmar.
sorry I send this message by mistake. the rest of the conditions (like no vars greater than 65536 can be used) are in the other message I wrote.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only