Skip to content

rem(x, y, r) - Missing implementation for rounding mode RoundNearestTiesUp and RoundNearestTiesAway #60916

@lvlte

Description

@lvlte

Integer, float and rational types don't have an implementation of rem(x, y, r) with RoundNearestTiesUp and RoundNearestTiesAway rounding modes, eg. with RoundNearestTiesUp :

julia> rem(5.0, 2.0, RoundNearestTiesUp)
ERROR: MethodError: no method matching rem(::Float64, ::Float64, ::RoundingMode{:NearestTiesUp})
...

julia> rem(5, 2, RoundNearestTiesUp)
ERROR: MethodError: no method matching rem(::Int64, ::Int64, ::RoundingMode{:NearestTiesUp})
...

julia> rem(5//1, 2//1, RoundNearestTiesUp)
ERROR: MethodError: no method matching rem(::Rational{Int64}, ::Rational{Int64}, ::RoundingMode{:NearestTiesUp})
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    mathsMathematical functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions