Print a float number in normal form, not exponential form / scientific notation [duplicate] Print a float number in normal form, not exponential form / scientific notation [duplicate] python-3.x python-3.x

Print a float number in normal form, not exponential form / scientific notation [duplicate]


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.