Possible Duplicate:
Print number in engineering format
How do I print numbers in scientific notation with powers that are multiples of 3? For example:
1.5e4 --> 15e3
1.27e-8 --> 12.7e-9
2.9855e-11 --> 29.855e-9
I'm looking for a function similar to the ENG
button on a calculator. Is there a Python package somewhere that does this?