float rad2deg ( float $number )
rad2deg() converts $number from radian to degrees
※ available F/W version : all
Returns the equivalent of $number in degrees
<?php
$deg = 45.0;
$rad = deg2rad($deg);
$deg = rad2deg($rad);
echo "degree = $deg\r\n"; // OUTPUT: degree = 45
echo "radian = $rad\r\n"; // OUTPUT: radian = 0.78539816339745
?>
This function is identical to the PHP group’s rad2deg() function.