note 76312 added to language.operators.arithmetic
| From: | nicolas_rainardNOSPAM at yahoo dot fr | Date: | Tue, 10 Jul 2007 09:10:06 +0000 |
| Subject: | note 76312 added to language.operators.arithmetic | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-128358@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 217.174.196.197
Probable Submitter: 90.31.33.16
----
Manual Page -- http://www.php.net/manual/en/language.operators.arithmetic.php
Edit -- https://master.php.net/note/edit/76312
Del: integrated -- https://master.php.net/note/delete/76312/integrated
Del: useless -- https://master.php.net/note/delete/76312/useless
Del: bad code -- https://master.php.net/note/delete/76312/bad+code
Del: spam -- https://master.php.net/note/delete/76312/spam
Del: non-english -- https://master.php.net/note/delete/76312/non-english
Del: in docs -- https://master.php.net/note/delete/76312/in+docs
Del: other reasons-- https://master.php.net/note/delete/76312
Reject -- https://master.php.net/note/reject/76312
Search -- https://master.php.net/manage/user-notes.php