略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: rad2deg

2024-05-02

rad2deg

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

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

说明

rad2deg(float $number): float

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

参数

number

一个弧度值

返回值

number 相应的角度数

范例

示例 #1 rad2deg() 例子

<?php

echo rad2deg(M_PI_4); // 45

?>

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.rad2deg.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3