MATH类
来源:互联网 发布:企业vpn网络解决方案 编辑:程序博客网 时间:2024/05/18 12:40
public class Mathclass { public static void main(String[] args) { //向上取整 System.out.println(Math.ceil(6.9)); //向下取整 System.out.println(Math.floor(6.9)); //四舍五入 System.out.println(Math.round(6.3)); //求次方 System.out.println(Math.pow(2,3)); //求最大 System.out.println(Math.max(6,9)); //随机数 System.out.println(Math.random()); //求最小 System.out.println(Math.min(6,9)); }
阅读全文
0 0
- Math 类
- Math类
- Math类
- Math 类
- Math类
- Math类
- Math类
- math 类
- Math类
- Math 类
- Math类
- Math类
- Math类
- Math类
- Math类
- Math类
- Math类:
- Math类
- [标题党]15分钟开发可支持百万观众的H5视频直播网站
- html 中如何让鼠标箭头移到某个区域(div,input,a等标签)上就变为手型,移出后再变为原型。
- SQL垂直拆分和水平拆分
- python时间和时间戳之间的相互转换
- f'da's
- MATH类
- tar.xz 格式文件解压, CentOS 和 MacOS对比
- centos编译apr-util-1.6.0出错 缺少expat.h
- 线性判别分析(Linear Discriminant Analysis ,简称LDA)
- shrio 权限管理filterChainDefinitions过滤器配置
- 山寨币交易中的输入与输出是通过区块链什么技术实现的
- linux之入门---U盘安装centos7.3
- R语言连接ORACLE数据库
- RabbitMQ安装