java.math.BigDecimal中这两个方法可以
 BigDecimal setScale(int scale) 
          Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to this BigDecimal's. 
 BigDecimal setScale(int scale, int roundingMode) 
          Returns a BigDecimal whose scale is the specified value, and whose unscaled value is determined by multiplying or dividing this BigDecimal's unscaled value by the appropriate power of ten to maintain its overall value.