gmp_sqrt

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Calculate square root GMP gmp_sqrt ( GMP $a ) Calculates square root 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: The integer portion of the square root, as a G

gmp_sign

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Sign of number int gmp_sign ( GMP $a ) Checks the sign 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 1 if a is positive, -1 if a is negative, and

gmp_setbit

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Set bit void gmp_setbit ( GMP &$a, int $index [, bool $bit_on = true ] ) Sets bit index in a. Parameters: a The value to modify. 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

gmp_scan1

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Scan for 1 int gmp_scan1 ( GMP $a, int $start ) Scans a, starting with bit start, towards more significant bits, until the first set bit is found. Parameters: a The number to scan. 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

gmp_scan0

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Scan for 0 int gmp_scan0 ( GMP $a, int $start ) Scans a, starting with bit start, towards more significant bits, until the first clear bit is found. Parameters: a The number to scan. 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 latt

gmp_rootrem

(PHP 5, PHP 7 >= 5.6.0) Take the integer part and remainder of nth root array gmp_rootrem ( GMP $a, int $nth ) Takes the nth root of a and returns the integer component and remainder of the result. 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 t

gmp_root

(PHP 5, PHP 7 >= 5.6.0) Take the integer part of nth root GMP gmp_root ( GMP $a, int $nth ) Takes the nth root of a and returns the integer component of the result. 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.

gmp_random

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Random number GMP gmp_random ([ int $limiter = 20 ] ) Generate a random number. The number will be between zero and the number of bits per limb multiplied by limiter. If limiter is negative, negative numbers are generated. A limb is an internal GMP mechanism. The number of bits in a limb is not static, and can vary from system to system. Generally, the number of bits in a limb is either 1

gmp_random_seed

(PHP 7) Sets the RNG seed mixed gmp_random_seed ( mixed $seed ) Parameters: seed The seed to be set for the gmp_random(), gmp_random_bits(), and gmp_random_range() functions. 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:

gmp_random_range

(PHP 5, PHP 7 >= 5.6.3) Random number GMP gmp_random_range ( GMP $min, GMP $max ) Generate a random number. The number will be between min and max. min and max can both be negative but min must always be less than max. Parameters: min A GMP number representing the lower bound for the random number max A GMP number representing the