GMP Functions : Php Functions « Language Basics « PHP






GMP Functions

 
Name             Description

gmp_abs          Calculates absolute value

gmp_add          Adds numbers

gmp_and          Logical and

gmp_clrbit       Clears bit

gmp_cmp          Compares numbers

gmp_com          Calculates one's complement

gmp_div_q        Divides numbers

gmp_div_qr       Divides numbers and gets quotient and remainder

gmp_div_r        Remainder of the division of numbers

gmp_div          Alias of gmp_div_q()

gmp_divexact     Exact division of numbers

gmp_fact         Factorial

gmp_gcd          Calculates GCD

gmp_gcdext       Calculates GCD and multipliers

gmp_hamdist      Hamming distance

gmp_init         Creates GMP number

gmp_intval       Converts GMP number to integer

gmp_invert       Inverse by modulo

gmp_jacobi       Jacobi symbol

gmp_legendre     Legendre symbol

gmp_mod          Modulo operation

gmp_mul          Multiplies numbers

gmp_neg          Negates number

gmp_or           Logical or

gmp_perfect_square          Perfect square check

gmp_popcount     Population count

gmp_pow          Raises number into power

gmp_powm         Raises number into power with modulo

gmp_prob_prime   Checks if number is "probably prime"

gmp_random       Random number

gmp_scan0        Scans for 0

gmp_scan1        Scans for 1

gmp_setbit       Sets bit

gmp_sign         Sign of number

gmp_sqrt         Calculates square root

gmp_sqrtrem      Square root with remainder

gmp_strval       Converts GMP number to string

gmp_sub          Subtracts numbers

gmp_xor          Logical xor
  
  








Related examples in the same category

1.Functions to Check Data Type
2.Functions to Convert Data Types
3.Functions to Test Data Types
4.Using the @ operator to suppress a warning about the undefined variables