Javatpoint Logo
Javatpoint Logo

PHP gmp_rootrem() function

PHP language has a GMP function called gmp_rootrem() that delivers the integer data of the Nth root of an input GMP parameter or GMP value.

Syntax

The syntax shows the GMP function to get a root value of the GMP parameter.

Parameters

  • The function takes two variables: a value for $base_value and an integer value for $n_value. The gmp_root() function and how it works depend on both variables.
  • Begin with PHP version 5.6; the parameter uses a GMP object as input. As a GMP parameter, we can also use a string of numbers. The string values turn into the number.
    • $base_value: it is the GMP parameter whose integer data returns as the n-th root information.
    • $n_value: it is the GMP parameter's nth root value. It is an integer and positive numeric value.

Return Value

This function shows the integer data of the Nth root of $num as a positive GMP number.

Examples

Example1: the given example shows an "integer data of the last root value" of the input values.

Output:

The output image shows the integer part of the root value of the input data.

PHP gmp_rootrem() function

Example2: the given example shows an "integer data of the last root value" of the input variable values.

Output:

The output image shows the integer part of the root of the GMP value of the input data.

PHP gmp_rootrem() function

Example3: the given example shows an "integer part of the last root of GMP value" of the input GMP parameters.

Output:

The output image shows the integer part of the root of the GMP value of the input data.

PHP gmp_rootrem() function

Example4: The given example shows an "integer part of the last root of GMP value" of the input binary values.

Output:

The output image shows the integer part of the root of the GMP value of the input data.

PHP gmp_rootrem() function

Conclusion

The gmp_rootrem() function minimizes the complications of coding part of the PHP programming language. It shows the output as integer data of the n-th value of the GMP parameter or the GMP input value.







Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA