gmp_pow

PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
gmp_pow - Raise number into power
Manual
Code Examples

gmp_pow( GMP|int|string$num, int$exponent ): GMP

Raise num into power exponent.

Parameters

num

The base number.

A GMP object, an int or a numeric string.

exponent

The positive power to raise the num.

Return Values

The new (raised) number, as a GMP number. The case of 0^0 yields 1.

Example of gmp_pow

Show all examples for gmp_pow

PHP Version: