Working example : http://ideone.com/Ond6PY
You have two variables namely $a = 5
and $b = 9
What are the major mathematical differences between these two statements?
floor(floor($a / $b) - .5); //output: -1
and
(int)((int)($a / $b) - .5); //output: 0