Signatur
sqrt(float $num): float
Beschreibung
Bei negativem Input gibt es NAN.
Parameter
| Name | Typ | Default | Beschreibung |
|---|---|---|---|
| $num Pflicht | float | — | Zahl (nicht-negativ). |
Rückgabewert
Typ
float
Beschreibung
Quadratwurzel.
Beispiele
Basis
<?php
echo sqrt(144); // 12