PHP rad2deg() 函数

PHP 教程 · 2019-01-27 08:57:42

实例

把弧度转换为角度:

<?php
echo rad2deg(pi()) . "<br>";
echo rad2deg(pi()/4);
?>

定义和用法

rad2deg() 函数把弧度值转换为角度值。

提示:如需把角度值转换为弧度值,请查看 deg2rad() 函数。

语法

rad2deg(number);

参数 描述
number 必需。规定要转换的弧度值。

技术细节

返回值: number 对应的角度。
返回类型: Float
PHP 版本: 4+

点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html

查看所有标签

The Joy of X

The Joy of X

Niall Mansfield / UIT Cambridge Ltd. / 2010-7-1 / USD 14.95

Aimed at those new to the system seeking an overall understanding first, and written in a clear, uncomplicated style, this reprint of the much-cited 1993 classic describes the standard windowing syste......一起来看看 《The Joy of X》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具