-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cryptic error for Complex(::Irrational)
#22878
Comments
That is
|
or here?
|
Should be pick a default reasonable precision, like |
`complex(x::Irrational)` cannot create a `Complex{Irrational}` instance, we have to fall back on some other type, `Complex{Float64}` seems a reasonable option. Closes JuliaLang#22878, see JuliaLang#21204.
Create a `Complex{Real}` instance which preserves precision of the irrational number. Closes JuliaLang#22878, see JuliaLang#21204.
The decision in PR #22928 was to keep the error and don't provide a default behavior. I guess this ticket can be closed, unless someone wants to improve the error message. |
I think this should stay open until the error is approved. |
|
We discussed this on triage, and felt that it is better to be explicit about the transforms for irrational numbers into the appropriate computational types and not add more methods to them. In this way, this type could be viewed as being similar to |
The text was updated successfully, but these errors were encountered: