Comment Comment by has2k1 It depends on how many decimal places you are printing >>> f'{b:.54f}' 0.299999999999999988897769753748434595763683319091796875 >>> f'{x:.16g}' 0.3 >>> f'{x:.17g}' 0.29999999999999999 parent has2k1 5 years ago