Open
Description
The following shows the issue:
julia> mod(float(pi),pi)
0.0
julia> mod(pi,float(pi))
0.0
julia> mod(pi,pi)
ERROR: mod not defined for Irrational{:π}
Stacktrace:
[1] error(::String, ::String, ::Type)
@ Base .\error.jl:44
[2] no_op_err(name::String, T::Type)
@ Base .\promotion.jl:506
[3] mod(x::Irrational{:π}, y::Irrational{:π})
@ Base .\promotion.jl:526
[4] top-level scope
@ REPL[109]:1
I wonder if this is intentional.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment