Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.2K+ articles
Misc
8.7K+ articles
PHP
3.9K+ articles
PHP-function
2.3K+ articles
maths-perfect-square
114+ articles
PHP-math
60+ articles
PHP-gmp
42 posts
Recent Articles
Popular Articles
PHP | gmp_random_range() Function
Last Updated: 25 April 2018
The gmp_random_range() is an inbuilt function in PHP which generates a random number.The random number thus generated lies between range min to max. Here GMP refers to (GN...
read more
Misc
Web Technologies
PHP
PHP-gmp
PHP | gmp_setbit() Function
Last Updated: 31 October 2023
The gmp_setbit() function is an inbuilt function in PHP which is used to set the bit index in given $num. Syntax:void gmp_setbit( GMP $num, int $index, bool $bit_on ) Pa...
read more
Web Technologies
PHP
PHP-function
PHP-gmp
PHP | gmp_gcdext() function
Last Updated: 14 June 2018
The gmp_gcdext() is an inbuilt function in PHP which calculates the GCD ( Greatest Common Divisor ) and multipliers of a given equation such that a * x + b * y = GCD(a, b)...
read more
Web Technologies
PHP
PHP-function
PHP-gmp
PHP | gmp_clrbit() Function
Last Updated: 14 June 2018
The gmp_clrbit() function is an in-built function in PHP which clears a bit of a GMP number (GNU Multiple Precision). The gmp_clrbit() function sets the bit at a specifie...
read more
Misc
Web Technologies
PHP
PHP-gmp
PHP | gmp_neg() Function
Last Updated: 14 June 2018
The gmp_neg() function is an in-built function in PHP which returns the negative of a GMP number (GNU Multiple Precision).Syntax :gmp_neg( $num )Parameters : The functio...
read more
Misc
Web Technologies
PHP
PHP-gmp
PHP | gmp_mul() Function
Last Updated: 14 June 2018
The gmp_mul() function in PHP is an inbuilt function which is used to multiply two GMP numbers (GNU Multiple Precision: For large numbers).Syntax:GMP gmp_mul ( GMP $num1, ...
read more
Misc
Web Technologies
PHP
PHP-function
PHP-gmp
PHP | gmp_import() Function
Last Updated: 25 June 2018
The gmp_import() function is an inbuilt function in php which imports a GMP number(GNU Multiple Precision: For large numbers) from a binary string.Syntax:GMP gmp_import ( ...
read more
Web Technologies
PHP
PHP-function
PHP-gmp
PHP | gmp_export() function
Last Updated: 02 November 2020
The gmp_export() function is an inbuilt function in PHP which exports a GMP number(GNU Multiple Precision: For Large Numbers) to a binary string.Syntax: string gmp_export ...
read more
Web Technologies
PHP
PHP-function
PHP-gmp
PHP | gmp_random_seed() Function
Last Updated: 19 June 2018
The gmp_random_seed() is an inbuilt function in PHP which sets the RNG seed( Random Number Generation). Syntax: void gmp_random_seed ( mixed $seed )Parameters: The gmp_ran...
read more
Web Technologies
PHP
PHP-function
PHP-gmp
PHP | gmp_random() Function
Last Updated: 19 June 2018
The gmp_random() function is an inbuilt function in PHP which generates a random number. The range of random number will be in between zero and the number of bits per limb...
read more
Web Technologies
PHP
PHP-function
PHP-gmp
PHP GMP Functions Complete Reference
Last Updated: 24 January 2023
The GMP function uses arbitrary-length integers to perform mathematical operations. The GMP function contains the GMP number as an argument.Example: Program to perform the...
read more
Misc
Web Technologies
PHP
PHP-gmp
PHP gmp_binomial() Function
Last Updated: 25 August 2023
The gmp_binomial() function is an inbuilt function in PHP that is used to calculate the binomial coefficients. The binomial coefficient, often denoted as "n choose k" or "...
read more
PHP
PHP-function
PHP-gmp
PHP gmp_perfect_power() Function
Last Updated: 28 April 2025
The gmp_perfect_power() function is an inbuilt function in PHP that is used to check the perfect power of the number.Syntax:gmp_perfect_power(GMP|int|string $num): boolPar...
read more
PHP
PHP-function
PHP-gmp
PHP gmp_lcm() Function
Last Updated: 28 April 2025
The gmp_lcm() is an inbuilt function in PHP that is used to calculate the least common multiple (LCM) of two or more integers. Syntax: gmp_lcm(GMP|int|string $num1, GMP|i...
read more
PHP
PHP-function
PHP-gmp
PHP gmp_init() Function
Last Updated: 28 April 2025
The gmp_init() function is an inbuilt function in PHP that is used to create a GMP number from different data types, including strings, integers, or other GMP objects. It'...
read more
PHP
PHP-function
PHP-gmp
1
2
3
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !