该方法将参数值转换为弧度。
double toRadians(double d)
这是参数的详细信息-
链接:https://www.learnfk.comhttps://www.learnfk.com/java/number-toradians.html
来源:LearnFk无涯教程网
d - 双重数据类型。
public class Test { public static void main(String args[]) { double x=45.0; double y=30.0; System.out.println( Math.toRadians(x) ); System.out.println( Math.toRadians(y) ); } }
这将产生以下输出-
0.7853981633974483 0.5235987755982988
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)