Skip to content Skip to sidebar Skip to footer

How Can I Avoid Python Converting Big Numbers To Scientific Notation?

I have data structured as follows: ['1404407396000', '484745869385011200', '0', '1922149633', 'The nurse from the university said I couldn't go if I don't get another measles i

Solution 1:

By using the format specification mini language described here:

https://docs.python.org/2/library/string.html

Search for: 7.1.3.1. Format Specification Mini-Language

Solution 2:

Use string formatting.

writer.writerows("%f" % data)

There are various formatting options you can check out here.

Post a Comment for "How Can I Avoid Python Converting Big Numbers To Scientific Notation?"