In Python, scientific notation always gives me 2 digits in exponent:
print('%17.8E\n' % 0.0665745511651039)
6.65745512E-02
However, I badly want to have 3 digits like:
6.65745512E-002
Can we do this with a built-in configuration/function in Python?
I know my question is basically the same question as: Python - number of digits in exponent, but this question was asked 4 years ago and I don't want to call such a function thousand times. I hope there should be a better solution now.