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

BigFloat prints differently from Float(32|64) in scientific notation #56941

Open
fredrikekre opened this issue Jan 3, 2025 · 0 comments
Open
Labels
bignums BigInt and BigFloat display and printing Aesthetics and correctness of printed representations of objects.

Comments

@fredrikekre
Copy link
Member

fredrikekre commented Jan 3, 2025

BigFloats always include the + for the exponent and leading 0s but e.g. Float64 does not:

julia> big"1e6"
1.0e+06

julia> 1e6
1.0e6

Noticed by @pjaap in fredrikekre/Runic.jl#13 (comment).

@fredrikekre fredrikekre added bignums BigInt and BigFloat display and printing Aesthetics and correctness of printed representations of objects. labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bignums BigInt and BigFloat display and printing Aesthetics and correctness of printed representations of objects.
Projects
None yet
Development

No branches or pull requests

1 participant