PHP GMP gmp_com() FunctionPHP has a built-in function called GMP or gmp_com() that is used to figure out the one's complement of a given GMP parameter. SyntaxThe following syntax shows the complement of the GMP number function. Parameters:
Return Value:This function returns a GMP number that is the one's complement of a GMP number passed to it as a parameter. ExamplesThe following examples show the "gmp_com()" function using the GMP parameters. Example1: The following example shows the GMP function's basic complementary operation. Output: The following output shows the complement values using the GMP function. Example2: the following example shows the complement of the given value using the "gmp_com()" operator. Output: The following output shows the complement values using the GMP function. Example3: the following example shows the complement of the given value with the "gmp_abs()" function. Output: The following output shows the complement values using the GMP parameter. Example4: the following example shows the complement of the given value with other operations and functions. Output: The following output shows the complement value using other functions. ConclusionThe "gmp_com()" function displays the complement of the two-parameter with a single operation. It is the numerical operation of GMP functions and parameters. Next TopicPHP gmp_div_q() Function |