[New-bugs-announce] [issue38703] should we expect round(0.95, 1) to be 1.0, instead of 0.9?
Yudong Liu
report at bugs.python.org
Tue Nov 5 14:53:04 EST 2019
New submission from Yudong Liu <michael_chnc at hotmail.com>:
Python 3.7.0 (default, Aug 22 2018, 20:50:05)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> round(0.95,1)
0.9
>>> round(0.95)
1
>>> round(0.96,1)
1.0
----------
components: Library (Lib)
messages: 356054
nosy: yudongliu
priority: normal
severity: normal
status: open
title: should we expect round(0.95,1) to be 1.0, instead of 0.9?
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38703>
_______________________________________
More information about the New-bugs-announce
mailing list