[PHP] math functions?

2003-08-26 Thread Amanda McComb
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.

Thanks!
Amanda

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] math functions?

2003-08-26 Thread Robert Cummings
Is there some reason you can't use the modulus operator?

http://www.php.net/manual/en/language.operators.arithmetic.php

Cheers,
Rob.


On Tue, 2003-08-26 at 11:07, Amanda McComb wrote:
 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.
 
 Thanks!
 Amanda
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
-- 
.-.
| Worlds of Carnage - http://www.wocmud.org   |
:-:
| Come visit a world of myth and legend where |
| fantastical creatures come to life and the  |
| stuff of nightmares grasp for your soul.|
`-'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] math functions?

2003-08-26 Thread CPT John W. Holmes
From: Amanda McComb [EMAIL PROTECTED]


 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...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] math functions?

2003-08-26 Thread Amanda McComb
The reason was because we are having intermittent network problems and I
was unable to search for it.  That's why I was asking for a place to find
math functions.  

I also asked for a mod function, which in most languages is short for
modulus.

On 26 Aug 2003, Robert Cummings wrote:

 Is there some reason you can't use the modulus operator?
 
 http://www.php.net/manual/en/language.operators.arithmetic.php
 
 Cheers,
 Rob.
 
 
 On Tue, 2003-08-26 at 11:07, Amanda McComb wrote:
  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.
  
  Thanks!
  Amanda
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
  
  
 -- 
 .-.
 | Worlds of Carnage - http://www.wocmud.org   |
 :-:
 | Come visit a world of myth and legend where |
 | fantastical creatures come to life and the  |
 | stuff of nightmares grasp for your soul.|
 `-'
 
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] math functions?

2003-08-26 Thread Amanda McComb
Perfect!  Thanks!  


On Tue, 26 Aug 2003, CPT John W. Holmes wrote:

 From: Amanda McComb [EMAIL PROTECTED]
 
 
  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...
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php