Skip to content

rem2pi(x::Integer, r::RoundingMode) is missing. #44715

@N5N3

Description

@N5N3

Currently we only defined rem2pi(x::Int32, r::RoundingMode), rem2pi(x::Int64, r::RoundingMode).
A general fallback seems make sense.

function rem2pi(x::Integer, r::RoundingMode)
    fx = float(x)
    fx == x || throw(ArgumentError("$(typeof(x)) argument to rem2pi is too large: $x"))
    rem2pi(fx, r)
end

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