DoubleFloats.jl icon indicating copy to clipboard operation
DoubleFloats.jl copied to clipboard

showall does not match example

Open nrbeaton opened this issue 1 year ago • 2 comments

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.

nrbeaton avatar Jan 17 '24 00:01 nrbeaton

indeed. Thank you for noticing.

JeffreySarnoff avatar Jan 17 '24 02:01 JeffreySarnoff

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 --

JeffreySarnoff avatar Jan 17 '24 02:01 JeffreySarnoff