📄 testmath.java
字号:
package apibook.c2.s3;public class TestMath { public static void main(String[] args) { System.out.println(Math.abs(-10.2)); System.out.println(Math.acos(0.5)); System.out.println(Math.ceil(10.23)); System.out.println(Math.cos(Math.PI*3/2)); System.out.println(Math.exp(1)); System.out.println(Math.log(Math.exp(2))); System.out.println(Math.pow(2,4)); System.out.println(Math.max(2,4)); System.out.println(Math.IEEEremainder(243,53)); System.out.println(Math.random()); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -