保留兩位小數,返回值爲double
double value = (double)Math.round(newValue*100)/100
保留兩位小數,返回值爲String
String.format("%.2f",Double.valueOf(loss)/100))
保留兩位小數,返回值爲double
double value = (double)Math.round(newValue*100)/100
保留兩位小數,返回值爲String
String.format("%.2f",Double.valueOf(loss)/100))
在package org.eclipse.core.runtime;Always start the progress monitor and do