intValue
public int intValue()Returns the value of this Double as an int (by casting to type int). Specified by:
intValue in class Number
Returns:
the double value represented by this object converted to type int
public int intValue()Returns the value of this Double as an int (by casting to type int). Specified by:
intValue in class Number
Returns:
the double value represented by this object converted to type int
解决方案 »
- c.equals("admin")和"admin".equals(c)的区别
- 为什么map的size是5,但里面只有四个对象
- GetDate.getPreviusMonth( gc )问题!!!
- 数据库连接的 statement 对象生成后,但在两个不同的小模块中,如何调用。
- 帮忙看看这2句是啥意思!
- 请教SWT 界面编程问题,懂的进
- 用jsp方式怎么导出有多个sheet内容的excel,一个sheet的很容易,为什么多个的就不行呢?
- 有关HashMap的顺序问题,请大家帮忙。
- 在线考试系统!!!!
- jbuilder rmi 的例子的问题
- NoClassDefFoundError!!!第一次碰上
- 请问如何使javac 在任何目录下都能用?
double Math.ceil(double) 将一个数舍入为大于等于他的最小整数
double Math.floor(double)将一个数舍入为小于等于他的最小整数
double Math.rint(double) 将一个浮点数舍入为同他的最接近的整数
int Math.round(float) 将一个浮点数舍入为同他最接近的整数
int nx=(int)Math.round(x);//四舍五入方法,nx=13;还有简单的去掉小数部分:
double x=12.6;
int nx=(int)x;//nx=12;