/**
* @return >0,第一位数大
*/
public static int compare(double double1, double double2) {
BigDecimal data1 = new BigDecimal(double1);
BigDecimal data2 = new BigDecimal(double2);
return data1.compareTo(data2);
}
/**
* @return >0,第一位数大
*/
public static int compare(double double1, double double2) {
BigDecimal data1 = new BigDecimal(double1);
BigDecimal data2 = new BigDecimal(double2);
return data1.compareTo(data2);
}