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