Why does the floating-point value of 4*0.1 look nice in Python 3 but 3*0.1 doesn’t?
I know that most decimals don’t have an exact floating point representation (Is floating point math broken?).
I know that most decimals don’t have an exact floating point representation (Is floating point math broken?).
I know rounding errors happen in floating point arithmetic but can somebody explain the reason for this one: