DanielTrautmann Posted November 25, 2013 Share Posted November 25, 2013 (edited) 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 November 25, 2013 by DanielTrautmann Quote Link to comment Share on other sites More sharing options...
.josh Posted November 25, 2013 Share Posted November 25, 2013 $GNumberkurse != $GNumberKurse Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.