samedi 16 juillet 2016

Python - Saving text file without scientific notation values


Attempting to save two arrays together as a text file.

import numpy as np

np.savetxt('NormalizedData.txt',  np.transpose([Wavle2,Intscale2P]),delimiter=',')

returns

3.455400000000000205e+02,0.000000000000000000e+00
3.457599999999999909e+02,8.388047138047138862e-02
3.459800000000000182e+02,8.425925925925924209e-02

and so on.

How do I specify python not to do this?


Aucun commentaire:

Enregistrer un commentaire