Skip to content
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

don't use 1.im and 0.im #2

Closed
stevengj opened this issue Oct 19, 2016 · 1 comment
Closed

don't use 1.im and 0.im #2

stevengj opened this issue Oct 19, 2016 · 1 comment

Comments

@stevengj
Copy link

Use 1im and 0im or 1.0im and 0.0im if you need to enforce a floating-point type (note that e.g. 2.4 + 0im will already promote to Complex{Float64}). The reason is that the 0.im syntax may soon be disallowed in Julia 0.6 (JuliaLang/julia#16339).

@bastikr
Copy link
Member

bastikr commented Nov 16, 2016

Thank you for the warning. I changed the code accordingly.

@bastikr bastikr closed this as completed Nov 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants