note 27914 rejected from language.operators.arithmetic by nicos
| From: | nicos@php.net | Date: | Tue, 24 Dec 2002 18:52:09 +0000 |
| Subject: | note 27914 rejected from language.operators.arithmetic by nicos | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-41263@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.