I’m seeing two different outputs for Dec128 numbers println() vs @printf:
(Julia v1.10.0 with DecFP v1.3.2)
using Printf, Quadmath, DecFP
C = log2(big(ℯ)) # \euler <tab> to get symbol
d = convert(Dec128, C)
println("C = ", C)
println("d = ", d)
@printf("d = %.36f\n", d)
@printf("d = %.36f\n", convert(BigFloat,d))
Gives output
C = 1.442695040888963407359924681001892137426645954152985934135449406931109219181187
d = 1.442695040888963407359924681001892
d = 1.442695040888963387004650940070860088
d = 1.442695040888963407359924681001892000
Should I be using a different modifier not %f for DecFP formats ?