Convert Hexadecimal String to Decimal Number using Python

int function

hexString = '3c'
decimalNumber = int(hexString, 16)

print(decimalNumber)

Leave a Comment

Cancel reply

Your email address will not be published.