gmp_fact

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Factorial GMP gmp_fact ( mixed $a ) Calculates factorial (a!) of a. Parameters: a The factorial number. 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: A GMP number resource in PHP

gmp_export

(PHP 5, PHP 7 >= 5.6.1) Export to a binary string string gmp_export ( GMP $gmpnumber, integer $word_size, integer $options ) Export a GMP number to a binary string Parameters: gmpnumber The GMP number being exported word_size Default value is 1. The number of bytes in each chunk of binary data. This is mainly used in conjunction with

gmp_divexact

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Exact division of numbers GMP gmp_divexact ( GMP $n, GMP $d ) Divides n by d, using fast "exact division" algorithm. This function produces correct results only when it is known in advance that d divides n. Parameters: n The number being divided. Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a

gmp_div

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Alias of gmp_div_q() This function is an alias of: gmp_div_q().

gmp_div_r

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Remainder of the division of numbers GMP gmp_div_r ( GMP $n, GMP $d [, int $round = GMP_ROUND_ZERO ] ) Calculates remainder of the integer division of n by d. The remainder has the sign of the n argument, if not zero. Parameters: n The number being divided. Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and

gmp_div_qr

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Divide numbers and get quotient and remainder array gmp_div_qr ( GMP $n, GMP $d [, int $round = GMP_ROUND_ZERO ] ) The function divides n by d. Parameters: n The number being divided. 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 la

gmp_div_q

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Divide numbers GMP gmp_div_q ( GMP $a, GMP $b [, int $round = GMP_ROUND_ZERO ] ) Divides a by b and returns the integer result. Parameters: a The number being divided. 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

gmp_com

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Calculates one's complement GMP gmp_com ( GMP $a ) Returns the one's complement of a. 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 one's complement of a,

gmp_cmp

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Compare numbers int gmp_cmp ( GMP $a, GMP $b ) Compares two 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 PHP 5.5 and earlie

gmp_clrbit

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Clear bit void gmp_clrbit ( GMP $a, int $index ) Clears (sets to 0) bit index in a. The index starts at 0. 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. index The in