Skip to content

searchsorted corner case #34157

@jw3126

Description

@jw3126

Today I hit the following corner case of searchsorted and friends:

julia> searchsorted(1:2.0, -Inf) # works
1:0

julia> searchsorted([1,2], -Inf) # works
1:0

julia> searchsorted(1:2, -Inf) # throws
ERROR: InexactError: trunc(Int64, Inf)

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