[Numpy-discussion] np.savetxt() default format

Daniele Nicolodi daniele at grinta.net
Mon Feb 24 08:26:35 EST 2014


Hello,

I've noticed that numpy default format for saving data in ascii
representation with np.savetxt() is "%.18e".  Given that the default
data type for numpy is double and that the resolution of doubles is 15
decimal digits, what's the reason of the the additional three digits?

The three additional digits are definitely not an issue, but I would
like to understand the reason why they are there.

Thanks. Best,
Daniele



More information about the NumPy-Discussion mailing list