a.compareTo(b) == -1(a小于b)
a.compareTo(b) == 0(a等于b)
a.compareTo(b) == 1(a大于b)
a.compareTo(b) > -1(a大于等于b)
a.compareTo(b) < 1(a小于等于b)
a.compareTo(b) == -1(a小于b)
a.compareTo(b) == 0(a等于b)
a.compareTo(b) == 1(a大于b)
a.compareTo(b) > -1(a大于等于b)
a.compareTo(b) < 1(a小于等于b)
本文标题:BigDecimal比较大小
本文链接:https://www.haomeiwen.com/subject/seyglrtx.html
网友评论