a = int(124.99999999999999) #14 Decimal Places
print(a)
#Output: 124
b = int(124.999999999999999) #15 Decimal Places
print(b)
#Output: 125
I would like to know the working behind this as the output remains 0
in the above code when 124
is replaced with 0
even with 15 decimal places of 9.