PHP 8.3.4 Released!

rad2deg

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

rad2deg 将弧度数转换为相应的角度数

说明

rad2deg(float $num): float

本函数将 num 从弧度转换为角度。

参数

num

一个弧度值

返回值

num 相应的角度数

示例

示例 #1 rad2deg() 示例

<?php

echo rad2deg(M_PI_4); // 45

?>

参见

add a note

User Contributed Notes

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