Convert radians to degrees:
<?php
echo rad2deg(pi()) . "<br>";
echo rad2deg(pi()/4);
?>
Try it Yourself »
The rad2deg() function converts a radian value to a degree value.
Tip: To convert a degree value to a radian value, look at the deg2rad() function.
rad2deg(
number);
Parameter | Description |
---|---|
number | Required. Specifies a radian value to convert |
Return Value: | The equivalent of number in degrees |
---|---|
Return Type: | Float |
PHP Version: | 4+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!