bcmod()

From: Date: Tue, 17 Jun 2003 18:42:23 +0000
Subject: bcmod()
Groups: php.general 
Request: Send a blank email to php-general+get-151879@lists.php.net to get a copy of this message
The docs (see below) for bcmod() are rather skimpy. Does anyone have a clue as to how it works. Basically I want to do this (below code). PS: I am new to PHP but not to programming in general. Tom $i = 1; while (something true){
    $modulus = the_modulus_of($i / 4); // does php do % instead of /?
    if($modulus == 0){
         do_this_this_time();
    }
$i++; } *bcmod* (PHP 3, PHP 4 ) bcmod -- Get modulus of an arbitrary precision number Description string bcmod ( string left_operand, string modulus) Get the modulus of the left_operand using modulus.

« previous php.general (#151879) next »