Why does
x = int(34.43)
y = int('72')
z = float('22.43')
give x = 34, y= 72 and z = 22.43
but
x = int('10.8')
result in an error, and not x = 10
Does it have something to do with how float values are stored in memory? Any detailed explanations as to why this happens are most welcome (not how to resolve this issue). Thanks in advance