bcmod(3) php man page | unix.com

Man Page: bcmod

Operating Environment: php

Section: 3

BCMOD(3)								 1								  BCMOD(3)

bcmod - Get modulus of an arbitrary precision number

SYNOPSIS
string bcmod (string $left_operand, string $modulus)
DESCRIPTION
Get the modulus of the $left_operand using $modulus.
PARAMETERS
o $left_operand - The left operand, as a string. o $modulus - The modulus, as a string.
RETURN VALUES
Returns the modulus as a string, or NULL if $modulus is 0.
EXAMPLES
Example #1 bcmod(3) example <?php echo bcmod('4', '2'); // 0 echo bcmod('2', '4'); // 2 ?>
SEE ALSO
bcdiv(3). PHP Documentation Group BCMOD(3)
Related Man Pages
moduli(5) - osx
moduli(5) - redhat
moduli(5) - x11r4
moduli(5) - hpux
moduli(5) - plan9
Similar Topics in the Unix Linux Community
User Guide: Posting in the Emergency Forum
UNIX.COM 2017 Year End Summary
Please Welcome Don Cragun as Lead Moderator
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun