Skip to content

cancelminus specification #508

Closed
@Chris00

Description

@Chris00

The following code

a = @interval(1e308, 1e308)
b = @interval(1e-308, 1e-308)
@show cancelminus(a, b)

prints

cancelminus(a, b) = [9.99999e+307, 1.00001e+308]

Is it really what the standard mandates? Shouldn't it be Interval(prevfloat(Inf), 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