On 19/06/2012 17:23, Edward C. Jones wrote:
Consider the following line in C:
printf('%a\n', x);
where x is a float or double. This outputs a hexadecimal representation
of x. Can I do this in Python?


See this http://docs.python.org/library/string.html#format-examples

--
Cheers.

Mark Lawrence.

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to