Math
来源:互联网 发布:淘宝卖家钻石 编辑:程序博客网 时间:2024/06/05 07:24
public class TestMath {
public static void main(String[]args){
System.out.println("计算-10.4的绝对值"+Math.abs(-10.4));
System.out.println("比较55和-10哪个数小"+Math.min(55,-10));
System.out.println("比较0.0和-0.0哪个数大"+Math.max(0.0,-0.0));
System.out.println("取0-1之间的随机数"+Math.random());
}
}
0 0
- Math
- math
- Math
- Math
- Math
- Math
- math
- Math
- math
- Math
- Math
- Math
- Math
- Math
- Math
- Math
- Math
- Math
- 黑马程序员---OC学习笔记之ARC的概念及原理
- 弱校联萌十一大决战之强力热身 C.Censor (KMP变形 好题)
- jquery插件开发基础知识点
- HDOJ 1850 Being a Good Boy in Spring Festival(尼姆博奕,位运算小技巧)
- Linux目录结构
- Math
- C++实现Ping
- 使用Java调用以WSDL形式发布的web service
- 初识 Objective - C
- 程序题目6-1
- iOS Xcode7 ‘/Users/**/Framework/SDKs/PolymerPay/Library/mobStat/lib**SDK.a(**ForSDK.o)’does not con
- hive优化方式和使用技巧
- Android中解析lrc歌词 同步歌曲
- android 电容屏(一):电容屏基本原理篇