First time here? Check out the FAQ!
asked 12 years ago
print '{0:.3e}'.format(float(2.23799235765712699)) print '{0:.3e}'.format(float(2.23799235765712699e47675))
gives
2.238e+00 inf
Clearly what I want in the second case is 2.238e+47675.
How can I achieve this?