Signatur
cos(float $num): float
Beschreibung
Ergänzung zu sin().
Parameter
| Name | Typ | Default | Beschreibung |
|---|---|---|---|
| $num Pflicht | float | — | Radiant. |
Rückgabewert
Typ
float
Beschreibung
cos(num).
Beispiele
0°
<?php
echo cos(0); // 1