会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
spring学习笔记
java例程练习(Math类)
public class Test { public static void main(String[] args) { double a = Math.random(); double b = Math.random(); System.out.println(Math.sqrt(a*a+b*b)); System.out.println(Math.pow(a, 8)); System.out.println(Math.round(b)); System.out.println(Math.log(Math.pow(Math.E, 15))); double d = 60.0; double r = Math.PI / 4; System.out.println(Math.toRadians(d)); System.out.println(Math.toDegrees(r)); System.out.println(Math.PI); System.out.println(Math.E); } }
posted on
2012-04-30 19:08
spring学习笔记
阅读(
209
) 评论(
0
)
编辑
收藏
举报
会员力量,点亮园子希望
刷新页面
返回顶部
导航
博客园
首页
联系
订阅
管理
公告