Skip to content

Floating point modulus has snuck back into the language #27824

Closed
@alexcrichton

Description

@alexcrichton

Back in 1563ea9 we decided to remove the % operator from floats in the language, relegating the implementations of the Rem trait to library calls on the fmod and fmodf functions. (some discussion in #12278)

One of the reasons cited for its removal was the removal of support from LLVM, although I don't think that's happened yet and I'm not quite sure what the status there is.

Regardless, we can probably still remove this without affecting backwards compatibility, but we'd probably want to do so sooner rather than later. Would just be good to make sure we've got our ducks in a row!

Nominating

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-langRelevant to the language team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions