[issue35187] a bug about np.arrange

2018-11-07 Thread xiyunlong


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: xyl123
priority: normal
severity: normal
status: open
title: a bug about np.arrange
versions: Python 3.5

___
Python tracker 
<https://bugs.python.org/issue35187>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35188] something confused about numpy.arange

2018-11-08 Thread xiyunlong


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: 329466
nosy: xyl123
priority: normal
severity: normal
status: open
title: something confused about numpy.arange
versions: Python 3.5

___
Python tracker 
<https://bugs.python.org/issue35188>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35188] something confused about numpy.arange

2018-11-08 Thread xiyunlong


Change by xiyunlong :


--
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue35188>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com