PHP 8.1.28 Released!

gmp_pow

(PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8)

gmp_powEleva un numero a potenza

Descrizione

gmp_pow(resource $base, int $exp): resource

Eleva la base base ad una potenza exp. Nel caso di 0^0 il risultato sarà 1. L'argomento exp non può essere negativo.

add a note

User Contributed Notes 1 note

up
-12
rahulkadukar at yahoo dot com
12 years ago
A Sample code can be shown as

<?php
echo gmp_strval(gmp_pow(4,4)); //This would give the answer as 256
?>
To Top