Skip to content

Floating point mod by a negative number is inconsistent between bounds and codegen #9121

@abadams

Description

@abadams

Codegen produces a negative result from floating point modulo by a negative number, but bounds inference assumes it's positive. Consensus at the dev meeting was to make it positive for consistency with integer mod (i.e float mod should produce the same thing as int mod if the floats happen to be ints).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions