rad2deg

(PHP 4, PHP 5, PHP 7)

rad2deg Converts the radian number to the equivalent number in degrees

Descrierea

rad2deg ( float $number ) : float

This function converts number from radian to degrees.

Parametri

number

A radian value

Valorile întoarse

The equivalent of number in degrees

Exemple

Example #1 rad2deg() example

<?php

echo rad2deg(M_PI_4); // 45

?>

A se vedea și

  • deg2rad() - Converts the number in degrees to the radian equivalent