Long longValue=1111L;
double doubleValue=longValue.doubleValue()/100;
System.out.println(doubleValue);

java Long除以100后保留两位小数

 

 

 

相关文章: