Java toRadians() 方法
Java 教程
· 2019-02-08 16:14:04
toRadians() 方法用于将角度转换为弧度。
语法
double toRadians(double d)
参数
d -- 任何原生数据类型。
返回值
该方法返回 double 值。
实例
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
点击查看所有 Java 教程 文章: https://www.codercto.com/courses/l/12.html
Realm of Racket
Matthias Felleisen、Conrad Barski M.D.、David Van Horn、Eight Students Northeastern University of / No Starch Press / 2013-6-25 / USD 39.95
Racket is the noble descendant of Lisp, a programming language renowned for its elegance and power. But while Racket retains the functional goodness of Lisp that makes programming purists drool, it wa......一起来看看 《Realm of Racket》 这本书的介绍吧!