Is there any fancy command to convert Hex string to Decimal?
I can find some examples but it does not perfectly match with my cases.
My case (with “0x” prefix or sometimes “0” is included between “0x” and the actual value part:
0xFF (hex string) -> 255 (decimal)
0x0AB (hex string) -> 171 (decimal)
The examples I found (no “0x” prefix):
FF -> 255
AB -> 171
If there is no fancy command then what I can do is to remove “0x” or “0x0” from the string and convert.
Thanks.