How do you convert a hex value in a string to an int?

Andrew Dalke adalke at mindspring.com
Mon Feb 10 17:23:31 EST 2003


Grumfish:
> How do you convert a hex value in a string to an int?

>>> int("A", 16)
10
>>>

                    Andrew
                    dalke at dalkescientific.com






More information about the Python-list mailing list