Skip to content

numpy arange includes right hand side #11913

@rshap91

Description

@rshap91

Not sure if this is a bug or not but i seem to be able to generate an array using np.arange that includes the right hand side...

Reproducing code example:

import numpy as np

np.arange(1,1.5,.1)
# array([1. , 1.1, 1.2, 1.3, 1.4])

np.arange(1,1.6,.1)
# array([1. , 1.1, 1.2, 1.3, 1.4, 1.5, 1.6]) ???

is this the correct behavior?

Error message:

Numpy/Python version information:

1.14.5 3.6.1 |Anaconda 4.4.0 (x86_64)| (default, May 11 2017, 13:04:09)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions