Why is double 0.1 more accurate than its long double version?
How can I understand this another floating-point paradox — 0.1 represented as double is more accurate than 0.1 represented as long double? In [134]: np.double(0.1) Out[134]: 0.1 In [135]: np.longdouble(0.1) Out[135]: 0.10000000000000000555 >Solution : It’s not more accurate. The longdouble repr is just showing you more of the inaccuracy that was already present. 0.1 is… Read More Why is double 0.1 more accurate than its long double version?