echo 65.7 * 100 % 10 // 0 echo 65.6 * 100 % 10 // 9 <--- echo 6560 % 10 // 0 echo 65.5 * 100 % 10 // 0
Can someone please explain why?
EDIT:
for human or non-programmers, the result 9 is apprently wrong.
how can I prevent this "error"
when programming?