php deg2rad() 等于 mysql radians()
这些功能一样吗?如果没有,什么是相当于mysql的radians()
的合适的php
Are these functions the same? If not, what is an appropriate php equivalent to mysql's radians()
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从他们的文档来看(
deg2rad
,弧度
),它们似乎做了同样的事情。对一个简单的测试用例进行快速验证:
并且,在 PHP 中:
还给出了:
所以,看起来它们的作用完全相同......
Judging from their documentations (
deg2rad
,radians
), they seem to do the same.And a quick verification on a simple test-case :
And, in PHP :
also gives :
So, it seems they do quite the same...
查阅文档:
x
,从度数转换为弧度。...所以是的,它们是等价的。
您是否正在寻找更具体的东西?
Consulting the documentation:
x
, converted from degrees to radians....so yes, they are equivalent.
Was there something more specific you were looking for?