note 27914 added to language.operators.arithmetic
| From: | mad_queen at interair dot com dot br | Date: | Tue, 24 Dec 2002 18:40:51 +0000 |
| Subject: | note 27914 added to language.operators.arithmetic | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41262@lists.php.net to get a copy of this message | ||
function div($a,$b){
$a = round($a);
$b = round($b);
return round(($a - ($a % $b)) / $b);
}
This probably works always.
--
http://www.php.net/manual/en/language.operators.arithmetic.php
http://master.php.net/manage/user-notes.php?action=edit+27914
http://master.php.net/manage/user-notes.php?action=delete+27914
http://master.php.net/manage/user-notes.php?action=reject+27914