New submission from xiyunlong :
when I use np.arange as follows:
np.arange(1,2.2,0.2)
I got the array as [1. , 1.2, 1.4, 1.6, 1.8, 2. , 2.2],we know, the maxvalue
2.2 of the array should not be included in the array. Is this a bug?
--
components: Library (Lib)
messages: 329460
nosy
New submission from xiyunlong :
when I use:print(np.arange(1,2.2,0.2))
I got:
1.0
1.2
1.4
1.5999
1.7998
1.9998
2.1997
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: 3
Change by xiyunlong :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue35188>
___
___
Python-bugs-list