Print a float number in normal form, not exponential form / scientific notation [duplicate]
I have a number that prints out in exponential form:
>>>
>>> a = 1/1221759
>>> print(a)
8.184920266599223e-07
>>>
How can i make it print in normal form?
You can format it as a fixed-point number.
>>> a = 1/1221759
>>> '{0:.10f}'.format(a)
'0.0000008185'
You can use print formatting:
print "%.16f" % a
where 16 is the number of digits you want after the decimal point.