-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
float(Complex{Integer}) should give a complex float #2930
Comments
If the imaginary part is zero, so that the conversion is exact, then this already works: |
I think I agree with Viral that the return type should be |
Yes, generally |
I was looking at cases where BLAS operations are to be performed on non I always interpreted the |
Yes that would be good. The whole point of a function like |
This will be very useful in the future, as it solves JuliaLang#2930 for BigInts (`float(x)` uses `convert(FloatingPoint, x)`), so float(BigInt(1)im) now works.
float(Complex{Integer})
should give a complex float.The text was updated successfully, but these errors were encountered: