-
-
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
bad print format for Complex{Unsigned} #37756
Comments
plausible logic
|
Perhaps we also just might want to do |
I was unaware of
|
Bump, I tested this today on Julia 1.6.2 and it was still a problem. |
I would like to take up this issue, but I wanted to clarify what exactly the problem is. |
I would like to contribute to resolving this issue. Please assign this issue to me. |
This is generally not done. But don't let that stop you from working on it :) |
…ry parts in 'show' The 'show' method for 'Complex' was not properly handling cases where the imaginary part was represented in hexadecimal ('0x'). This could lead to missing multiplication symbols '*' in the output, making the formatting inconsistent. To fix this, a check using 'occursin("0x", repr(i))' was added to detect these cases and ensure proper formatting. This improves the consistency of complex number representations and prevents ambiguities in the printed output.
The 'show' method for 'Complex' was not properly handling cases where the imaginary part was represented in hexadecimal ('0x'). This could lead to missing multiplication symbols '*' in the output, making the formatting inconsistent. To fix this, a check using 'occursin("0x", repr(i))' was added to detect these cases and ensure proper formatting. This improves the consistency of complex number representations and prevents ambiguities in the printed output.
These additions improve test coverage and ensure robust handling of different numeric representations in the `show` function. This extends the test suite in reference to issue JuliaLang#37756.
Complex number printing assumes that simple concatenation will produce something meaningful:
The text was updated successfully, but these errors were encountered: