Skip to content

numpy bug???? #4

Description

@roblanf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions