我看http://docs.oracle.com/javase/6/docs/api/java/lang/Double.html如何在Java中对int进行double操作?
我想
double b = Math.sqrt(absoluteNumber);
int c = b.intValue();
,但我收到此错误:
Factorise.java:13: error: double cannot be dereferenced
int c = b.intValue();
帮助吗?
'int c =(int)b;' – Mysticial
可能重复[如何在Java中将double转换为int?](http://stackoverflow.com/questions/2143476/how-to-cast-a-double-to-an-int-in-java) –