I can convert floats to scientific notations in python 3.6 in the following way:
from decimal import Decimal
a = 0.00235
b = "{:.4e}".format(Decimal(a))
which outputs:
2.3500e-3
However, what I need is this output:
2.3500e-003
I can't figure out how to do this. Any ideas?