Jump to content

Recommended Posts

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!

Edited by DanielTrautmann
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.