phpday 2027 - Call for Papers

deg2rad

(PHP 4, PHP 5, PHP 7, PHP 8)

deg2rad — Converte il numero espresso in gradi nell'equivalente in radianti

Descrizione

function deg2rad(float $num): float

Questa funzione converte num da gradi all'equivalente in radianti.

Elenco dei parametri

num

Valore angolare in gradi

Valori restituiti

L'equivalente in radianti di num

Esempi

Example #1 Esempio di deg2rad()

<?php

echo deg2rad(45), PHP_EOL; // 0.785398163397
var_dump(deg2rad(45) === M_PI_4); // bool(true)

?>

Vedere anche:

  • rad2deg() - Converte un numero in radianti nel numero equivalente in gradi

+add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top