Hi Guys,
I really have a problem with dividing 2 integer values. For some reason the value that saves the value of the divison turns into a boolean and not result is given.
function Probe_Average ($GNumberKurse,$resultpoints, $GNeutralWeight)
{
echo " gnumberkurse $GNumberKurse <p> ";
echo "resultpoints $resultpoints <p>";
echo " neutralweight $GNeutralWeight <p> ";
$summarize = $resultpoints+$GNeutralWeight;
echo " summarize $summarize <p>";
echo gettype($summarize);
echo gettype($GNumberKurse);
echo gettype($GNeutralWeight);
$summarize = ($summarize) / ($GNumberkurse);
echo "<p>GNumberKurse $GNumberKurse <p> ";
echo gettype($summarize);
echo "summarize: $summarize <p>";
return $summarize;
}
The result looks like this
gnumberkurse 17
resultpoints 335
neutralweight 195
summarize 530
integerintegerinteger
GNumberKurse 17
boolean summarize:
summarize should return a result of the division but turns out nothing. Do you have an idea?
THank you!