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

Float32 edge cases of leading/trailing 0 in floating points #286

Closed
nickrobinson251 opened this issue Sep 6, 2020 · 0 comments
Closed

Comments

@nickrobinson251
Copy link
Contributor

Current behaviour is

julia> str = """
       x = 3.f0
       y = 3f0
       """;

julia> print(format_text(str))
x = 3.f0
y = 3f0

I think the desired behaviour (following #61 and #83) is to output like the repl:

julia> 3.f0
3.0f0

julia> 3f0
3.0f0

julia> 30f0
30.0f0
domluna added a commit that referenced this issue Sep 7, 2020
Add leading/trailing 0 for Float32 literals, similar to how we do it for
other Float literals
@domluna domluna closed this as completed in ba44cee Sep 7, 2020
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

1 participant