problem in integer calculation

Hi all experts, I have fetched a peculiar problem in calculating integer value.

echo (int)((0.1+0.5)*10); // output 6
echo (int)((0.1+0.6)*10); // output 7
// but
echo (int)((0.1+0.7)*10); // output 7 which is a big question of mine


Can anyone help me please?
Please Login to post your reply or start a new topic