Jump to content

[HELP] with Operators


joomador

Recommended Posts

It would be 40 if the division was integer division.  But php doesn't use integer division.  From the manual:

 

There is no integer division operator in PHP. 1/2 yields the float 0.5. The value can be casted to an integer to round it downwards, or the round() function provides finer control over rounding.
Link to comment
https://forums.phpfreaks.com/topic/218799-help-with-operators/#findComment-1134758
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.