diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-01-20 13:06:55 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-01-20 13:27:12 -0700 |
commit | e5f4f8283e7721b0a72b621b765c42d7d7866f4f (patch) | |
tree | 6ec1676af97d5a74ccfbba05d7554a23c82abe44 /numpy/core/defchararray.py | |
parent | 56b06fe5bf20d11ca8188a00333ddf69ed8b2e42 (diff) | |
download | numpy-e5f4f8283e7721b0a72b621b765c42d7d7866f4f.tar.gz |
BUG: gh-2935, fix printing of scalar float -0.0.
The issue was that the string value of scalar floating types equal to -0.0
lacked a trailing ".0".
>>> print np.float64(-0.0)
-0
The problem resulted from using val < 0 to check for a leading negative
sign. That expression evaluates false when val = -0.0, and the need to
append ".0" was not detected.
Diffstat (limited to 'numpy/core/defchararray.py')
0 files changed, 0 insertions, 0 deletions