could any one explain me the output of this code:
num = 0
for i in range(3): # or while True:
num += 0.1
print(num)
the output:
> 0.1
> 0.2
> 0.30000000000000004
could any one explain me the output of this code:
num = 0
for i in range(3): # or while True:
num += 0.1
print(num)
the output:
> 0.1
> 0.2
> 0.30000000000000004