Is numpy cutting digits off when it converts to string??
Reproducible example:
Where it does a bad thing...
p=np.empty([2,6],dtype='U21')
p[0] = np.array(['Dataset','Charset','Test','Sp1','Sp2','pvalue'])
a = 4.4226657709978134e-05
p[1] = np.array(['Dataset','Charset','Test','Sp1','Sp2', a])
p
but changing one digit of the input number seems to work fine:
p=np.empty([2,6],dtype='U21')
p[0] = np.array(['Dataset','Charset','Test','Sp1','Sp2','pvalue'])
a = 4.4226657709978139e-05
p[1] = np.array(['Dataset','Charset','Test','Sp1','Sp2', a])
p
Is numpy cutting digits off when it converts to string??
Reproducible example:
Where it does a bad thing...
but changing one digit of the input number seems to work fine: