in reply to An arithmetic oddity

Just been asked: int($x) gives strange result

1/10 and 3/10 are periodic numbers in binary, just like 1/3 is a periodic number in decimal. They can't be represented exactly by a floating point number.