Python equivalent to the "A" or "a" output conversions in C
Hemanth H.M
hemanth.hm at gmail.com
Tue Jun 19 12:41:04 EDT 2012
Are you looking for :
>>> x=10
>>> hex(x)
'0xa'
>>> x=10.5
>>> float.hex(x)
'0x1.5000000000000p+3'
On Tue, Jun 19, 2012 at 9:53 PM, Edward C. Jones <edcjones at comcast.net>wrote:
> hexadecimal
--
*'I am what I am because of who we all are'*
h3manth.com <http://www.h3manth.com>
*-- Hemanth HM *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120619/295a3bd1/attachment.html>
More information about the Python-list
mailing list