Skip to content

StepRange + Float gives incorrect length #25521

Closed

Description

From https://discourse.julialang.org/t/properties-of-range/8298

julia> R = (22:-1:7)
22:-1:7

julia> x = -0.0030026930763747783
-0.0030026930763747783

julia> broadcast(+,x, R)
21.996997306923625:-1.0:7.996997306923625
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    broadcastApplying a function over a collection

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions