Skip to content

NumPy float arange() example no longer illustrates the problem #565

@hroncok

Description

@hroncok

Our example is:

>>> numpy.arange(0.0, 50.0, 0.3)[-1]
49.799999999999997

But this gives the following with current Python and NumPy:

>>> numpy.arange(0.0, 50.0, 0.3)[-1]
49.8

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions