gmp_and

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Bitwise AND GMP gmp_and ( GMP $a, GMP $b ) Calculates bitwise AND of two GMP numbers. Parameters: a Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is possible to convert the latter to a number. b Either a GMP number resource in P

gmp_add

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Add numbers GMP gmp_add ( GMP $a, GMP $b ) Add two numbers. Parameters: a A number that will be added. Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is possible to convert the latter to a number. b A number that will be added

gmp_abs

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Absolute value GMP gmp_abs ( GMP $a ) Get the absolute value of a number. Parameters: a Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is possible to convert the latter to a number. Returns: Returns the absolute value of a, as a GMP numbe

bcsub

(PHP 4, PHP 5, PHP 7) Subtract one arbitrary precision number from another string bcsub ( string $left_operand, string $right_operand [, int $scale = 0 ] ) Subtracts the right_operand from the left_operand. Parameters: left_operand The left operand, as a string. right_operand The right operand, as a string. scale

bcsqrt

(PHP 4, PHP 5, PHP 7) Get the square root of an arbitrary precision number string bcsqrt ( string $operand [, int $scale = 0 ] ) Return the square root of the operand. Parameters: operand The operand, as a string. scale This optional parameter is used to set the number of digits after the decimal place in the result. If omitted, it will

bcscale

(PHP 4, PHP 5, PHP 7) Set default scale parameter for all bc math functions bool bcscale ( int $scale ) Sets the default scale parameter for all subsequent calls to bc math functions that do not explicitly specify a scale parameter. Parameters: scale The scale factor. Returns: Returns TRUE on success or FALSE on failure.

bcpowmod

(PHP 5, PHP 7) Raise an arbitrary precision number to another, reduced by a specified modulus string bcpowmod ( string $left_operand, string $right_operand, string $modulus [, int $scale = 0 ] ) Use the fast-exponentiation method to raise left_operand to the power right_operand with respect to the modulus modulus. Parameters: left_operand The left operand, as a string.

bcpow

(PHP 4, PHP 5, PHP 7) Raise an arbitrary precision number to another string bcpow ( string $left_operand, string $right_operand [, int $scale = 0 ] ) Raise left_operand to the power right_operand. Parameters: left_operand The left operand, as a string. right_operand The right operand, as a string. scale

bcmul

(PHP 4, PHP 5, PHP 7) Multiply two arbitrary precision numbers string bcmul ( string $left_operand, string $right_operand [, int $scale = 0 ] ) Multiply the left_operand by the right_operand. Parameters: left_operand The left operand, as a string. right_operand The right operand, as a string. scale Th

bcmod

(PHP 4, PHP 5, PHP 7) Get modulus of an arbitrary precision number string bcmod ( string $left_operand, string $modulus ) Get the modulus of the left_operand using modulus. Parameters: left_operand The left operand, as a string. modulus The modulus, as a string. Returns: Returns the modulus as a string, or NULL