小白教程
所有教程
关于
Search
172.69.7.194
172.69.7.194
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Func math deg2rad”的源代码
本页内容
上一节:
Func_math_decoct
下一节:
Func_math_exp
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:deg2rad()}}[[Category:PHP Math 数学函数参考手册|17]] = PHP deg2rad() 函数 = [[:Category:PHP Math 数学函数参考手册]] 把角度转换为弧度: <sample title="" desc="" lang="php" hererun="1"> <?php echo deg2rad("45") . "<br>"; echo deg2rad("90") . "<br>"; echo deg2rad("360"); ?> </sample> == 定义和用法 == deg2rad() 函数把角度值转换为弧度值。 '''提示:'''如需把弧度值转换为角度值,请查看 [[func math rad2deg|rad2deg()]] 函数。 == 语法 == <pre> deg2rad(number);</pre> {| class="table table-striped table-hover" ! 参数 ! 描述 |- | number | 必需。规定要转换的角度。 |} == 技术细节 == {| class="table table-striped table-hover" | 返回值: | number 对应的弧度。 |- | 返回类型: | Float |- | PHP 版本: | 4+ |} == 更多实例 == == 实例 1 == 把角度转换为它对应的弧度: <sample title="" desc="" lang="php" hererun="1"> <?php $deg = 180; $rad = deg2rad($deg); echo "$deg degrees is equal to $rad radians."; ?> </sample> [[:Category:PHP Math 数学函数参考手册]]
返回至“
Func math deg2rad
”。
上一节:
Func_math_decoct
下一节:
Func_math_exp