Converting FROM decimal
Mike Fletcher
mfletch at tpresence.com
Sun Sep 24 22:40:29 EDT 2000
>>> '%x'%16
'10'
>>> '%o'%8
'10'
See also the built-in hex function.
HTH,
Mike
-----Original Message-----
From: insyte at petra.squad51.net [mailto:insyte at petra.squad51.net]
Sent: Sunday, September 24, 2000 10:27 PM
To: python-list at python.org
Subject: Converting FROM decimal
I've found several references here and there (FAQTS, etc.) about
converting from hex, octal, etc. to decimal, but nothing about going the
other way. I suppose I could write my own function, but I can't
...
More information about the Python-list
mailing list