-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Open
Labels
complexComplex numbersComplex numbersgood first issueIndicates a good issue for first-time contributors to JuliaIndicates a good issue for first-time contributors to Julia
Description
As discussed on discourse, this seems like the only sensible definition:
mod(z::Complex{<:Integer}, n::Integer) = Complex(mod(real(z), n), mod(imag(z), n))
and similarly for div, rem (and probably divrem).
Should be easy to create a patch (much simpler than #35374): just add the 1-line definitions analogous to the one above, docs, news, and a test.
scheinerman, Moelf and simeonschaub
Metadata
Metadata
Assignees
Labels
complexComplex numbersComplex numbersgood first issueIndicates a good issue for first-time contributors to JuliaIndicates a good issue for first-time contributors to Julia