Signatur
sin(float $num): float
Beschreibung
Erwartet Radiant, nicht Grad. Von Grad: deg2rad($grad).
Parameter
| Name | Typ | Default | Beschreibung |
|---|---|---|---|
| $num Pflicht | float | — | Radiant. |
Rückgabewert
Typ
float
Beschreibung
sin(num).
Beispiele
90°
<?php
echo sin(deg2rad(90)); // 1