天天看點

BigDecimal格式比較大小

與0比較大小 int t = big_decimal.compareTo(BigDecimal.ZERO);

if(t==0) //等于

if(t==1) //大于

if(t==-1) //小于

繼續閱讀