Specified by: compareTo in interface Comparable<BigDecimal> Parameters: val - BigDecimal to which this BigDecimal is to be compared. Returns: -1, 0, or 1 as this BigDecimal is numerically less than, equal to, or greater than val. 简单翻译: 结果是-1 小于 0 等于 1 大于