print in scientific notation python code example
Example 1: python print float in scientific notation
v = 2.50435-e03
'%.2E' % v
# returns '2.50E-03'
Example 2: python print do not use scientific notation
num = 5 / 40000000
output = f"{num:.9f}"
print(output)
Example 3: how to display printed values without scientific notation python
>>> a = -7.1855143557448603e-17
>>> '{:f}'.format(a)
'-0.000000'