Re: math functions?
| From: | CPT John W. Holmes | Date: | Tue, 26 Aug 2003 15:15:20 +0000 |
| Subject: | Re: math functions? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-160775@lists.php.net to get a copy of this message | ||
From: "Amanda McComb" <amccomb@indiana.edu>
> I am having trouble finding math functions on php.net. I am also getting
> "page not found" errors when trying to search.
>
> Basically, I'm looking for a mod or division function - something I can
> use to tell me when a number is evening divisable by a certain number.
% is mod, / is division...
$a = 10;
$b = 5;
if($a % $b == 0)
{ echo "evenly devisable"; }
Arithmetic Operators:
http://us2.php.net/manual/en/language.operators.arithmetic.php
Math Functions:
http://us2.php.net/manual/en/ref.math.php
BCMath Functions
http://us2.php.net/manual/en/ref.bc.php
---John Holmes...