-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
Closed
Description
All elements of the array generated by numpy.arange(start, stop, step) should be strictly smaller than stop.
On my Ubuntu 14.04 installation this happened:
In [117]: np.arange(0.5, 0.8, 0.1)
Out[117]: array([ 0.5, 0.6, 0.7, 0.8])
In [118]: np.arange(0.5, 0.9, 0.1)
Out[118]: array([ 0.5, 0.6, 0.7, 0.8])
In [123]: np.arange(0.5, 0.8, 0.1)[-1]
Out[123]: 0.79999999999999993
In [124]: np.arange(0.5, 0.9, 0.1)[-1]
Out[124]: 0.79999999999999993
Is this an issue on other installations?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels