You have several questions related to this question, but these are always integers.
For example:
<?php
function evenOdd($number){
$conta = $number / 2;
$resto = $number % 2;
if($resto == 0.0)
echo $conta.' - Par';
else
echo $conta.' - Ímpar';
}
evenOdd(11.8);
echo ' | ';
evenOdd(10.8);
echo ' | ';
evenOdd(5.075);
echo ' | ';
evenOdd(4.39);
What's the gist of whether it's even or odd?