I am trying to print scientific numbers with all the significant digits after the decimal point. `
Python's scientific notation prints with one digit before the dot like 1.2345678E+03
,
'%E' % Decimal('1234.5678')
'1.2345678E+03'
but I want to print 0.12345E+04
instead.
Edit:
A more generalized approach to have arbitrary number of digits before and after the dot would be more helpful. Like being able to print 123.456E+01
or 1234.56E-01
etc.