bcpow

(PHP 4, PHP 5, PHP 7, PHP 8)

bcpow Effettua l'elevamento a potenza

Descrizione

bcpow(string $x, string $y, int $precisione = ?): string

Eleva x alla potenza y. Il parametro opzionale precisione può essere usato per impostare il numero di cifre dopo il punto decimale nel risultato.

Esempi

Example #1 bcpow() example

<?php

echo bcpow(4.2, 3, 2); // 74.08

?>

Vedere anche:

bcpowmod() e bcsqrt().