[New-bugs-announce] [issue35188] something confused about numpy.arange
xiyunlong
report at bugs.python.org
Thu Nov 8 07:05:53 EST 2018
New submission from xiyunlong <xyl123 at sjtu.edu.cn>:
when I use:print(np.arange(1,2.2,0.2))
I got:
1.0
1.2
1.4
1.5999999999999999
1.7999999999999998
1.9999999999999998
2.1999999999999997
could any one tell me why it's not 1.0,1.2,1.4,1.6,1.8,2.0?
Many thanks!
----------
components: Library (Lib)
messages: 329466
nosy: xyl123
priority: normal
severity: normal
status: open
title: something confused about numpy.arange
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35188>
_______________________________________
More information about the New-bugs-announce
mailing list