in reply to Re^3: Decimal Floating Point (DFP) and does Perl needs DFP?
in thread Decimal Floating Point (DFP) and does Perl needs DFP?
Right you are about the __float128 case. After rewriting the constant as (__float128)1000001 / 1e6, my result now matches your calculation.
I'm inclined to think the bc-calculated value is accurate. But verifying that is rather laborious, for 1000001**6e7 is a number with ca 360M decimal digits.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Decimal Floating Point (DFP) and does Perl needs DFP?
by syphilis (Archbishop) on Jan 19, 2015 at 23:34 UTC |