Signatur
rad2deg(float $num): float
Beschreibung
Formel: deg = rad × 180/π.
Parameter
| Name | Typ | Default | Beschreibung |
|---|---|---|---|
| $num Pflicht | float | — | Radiant. |
Rückgabewert
Typ
float
Beschreibung
Grad.
Beispiele
Basis
<?php
echo rad2deg(M_PI); // 180