摘要:
一 BigDecimal num = new BigDecimal("2.225667");//一般都会这样写最好 int count = num.scale(); System.out.println(count);//6 返回的是小数点后位数 1. ROUND_DOWN BigDecimal b 阅读全文
摘要:
public int compareTo(BigDecimal val) { // Quick path for equal scale and non-inflated case. if (scale == val.scale) { long xs = intCompact; long ys = 阅读全文
摘要:
int totalFee = (int)(Double.parseDouble(paramMap.get("totalFee").toString())*100); int totalFee = (int)(Float.parseFloat(paramMap.get("totalFee").toSt 阅读全文