Printing complex numbers

Stephen Boulet stephen at theboulets.net
Sat Dec 15 19:42:25 CET 2001


I know that for floats you can do:

print '.3f' % x

or 

print '.3e' % x

But how do you do the same for complex numbers?

-- Stephen



More information about the Python-list mailing list