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 : np.double(0.1) Out: 0.1 In : np.longdouble(0.1) Out: 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?