← All docs

gmp_pow()

Raises a GMP number to an integer power.

gmp_pow()

function gmp_pow(object|string|int $num, int $exponent): object

Raises a GMP number to an integer power.

Parameters:

  • $num (object|string|int)
  • $exponent (int)

Returns: object

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how gmp_pow is implemented in the compiler, see the internals page.