Skip to content

Math.clamp should not throw if min <= max #22

@waldemarhorwat

Description

@waldemarhorwat

Math.clamp(x, 0, -0) currently throws. It shouldn't — mathematical operations interpret 0 as equal to -0, not greater than -0. The result should be either 0 or -0.

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