diff options
author | Allan Haldane <allan.haldane@gmail.com> | 2018-03-09 14:53:19 -0500 |
---|---|---|
committer | Allan Haldane <allan.haldane@gmail.com> | 2018-03-09 15:02:40 -0500 |
commit | 4193d30d850e94f0ab2bd03016f3a3353dd9da4b (patch) | |
tree | 9b30d0b350bdec615d3aaf7a62144a340467d31f /numpy/core/tests | |
parent | 96684909b41c240a5ad8039393720d8bd9fc5ece (diff) | |
download | python-numpy-4193d30d850e94f0ab2bd03016f3a3353dd9da4b.tar.gz python-numpy-4193d30d850e94f0ab2bd03016f3a3353dd9da4b.tar.bz2 python-numpy-4193d30d850e94f0ab2bd03016f3a3353dd9da4b.zip |
BUG: dragon4 fractional output mode adds too many trailing zeros
Fixes #10713
Diffstat (limited to 'numpy/core/tests')
-rw-r--r-- | numpy/core/tests/test_scalarprint.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/tests/test_scalarprint.py b/numpy/core/tests/test_scalarprint.py index 164ab06c7..d57f1a890 100644 --- a/numpy/core/tests/test_scalarprint.py +++ b/numpy/core/tests/test_scalarprint.py @@ -152,6 +152,8 @@ class TestRealScalars(object): assert_equal(fpos64('1.5', unique=False, precision=3), "1.500") assert_equal(fsci32('1.5', unique=False, precision=3), "1.500e+00") assert_equal(fsci64('1.5', unique=False, precision=3), "1.500e+00") + # gh-10713 + assert_equal(fpos64('324', unique=False, precision=5, fractional=False), "324.00") def test_dragon4_interface(self): tps = [np.float16, np.float32, np.float64] |