note 76312 deleted from language.operators.arithmetic by hholzgra
| From: | hholzgra@php.net | Date: | Thu, 02 Aug 2012 15:06:36 +0000 |
| Subject: | note 76312 deleted from language.operators.arithmetic by hholzgra | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189815@lists.php.net to get a copy of this message | ||
Note Submitter: nicolas_rainardNOSPAM at yahoo dot fr
----
Here is another very simple and extremely fast integer division function, but it works only if the
arguments are integers and nothing else. So use it only if you are sure of what you are doing.
function int_int_divide($x, $y) {
return ($x - ($x % $y)) / $y;
}
This one is much, much faster than the preceding ones.