Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Display a number in engineering notation
-
Before I go wild and write an algorithm to convert a number to engineering notation, is anyone aware of a simple way to achieve this?
How can I convert, for example, 1,234 into 1.234e+3
or
0.00123 into 1.23e-3? -
@donnieh , I am hopeless on this stuff, but I think
f = 0.00123 print '{0:e}'.format(f)
-