bcsqrt

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

bcsqrt Ottiene la radice quadrata di un numero a precisione arbitraria

Descrizione

bcsqrt(string $operando, int $precisione = ?): string

Restituisce la radice quadrata di operando. Il parametro opzionale precisione imposta il numero di cifre dopo il punto decimale nel risultato.

Esempi

Example #1 esempio di bcsqrt()

<?php

echo bcsqrt(2, 3); // 1.414

?>

Vedere anche:

bcpow().

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top