(PHP 4, PHP 5, PHP 7)
rad2deg — Converts the radian number to the equivalent number in degrees
rad2deg ( float $number ) : float
This function converts number
from radian to degrees.
number
A radian value
The equivalent of number
in degrees
Example #1 rad2deg() example
<?php echo rad2deg(M_PI_4); // 45 ?>
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.rad2deg.php