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

showall does not match example #184

Open
nrbeaton opened this issue Jan 17, 2024 · 2 comments
Open

showall does not match example #184

nrbeaton opened this issue Jan 17, 2024 · 2 comments

Comments

@nrbeaton
Copy link

nrbeaton commented Jan 17, 2024

I can't replicate the examples given in the README regarding showall.

What I get:

julia> using DoubleFloats

julia> Double64(0.2)
0.2

julia> showall(ans)
0.2

julia> Double64(2)/10
1.99999999999999999999999999999999384e-01

julia> showall(ans)
1.99999999999999999999999999999999384e-01

This is using Julia 1.10.0.

@JeffreySarnoff
Copy link
Member

indeed. Thank you for noticing.

@JeffreySarnoff
Copy link
Member

ahh I see ---

Julia is converting the 0.2 into a Float64 value before Double64( 0.2 ) sees the input.

Double64("0.2")
1.99999999999999999999999999999999384e-01

I will modify showall to work as expected (although the time to generate the result takes more time than doing nothing :) ) and revise the readme accordingly --

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