Start · Sprachen · PHP · Referenz · deg2rad

deg2rad

Funktion

Wandelt Grad in Bogenmaß um.

seit PHP 4.0.0 Kategorie: math

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 (π)