@@ -0,0 +1,539 @@
+package bigdecimal;%0A%0Aimport java.math.BigDecimal;%0Aimport java.math.RoundingMode;%0A%0Apublic class BigSetScaleTest %7B%0A    public static void main(String%5B%5D args) %7B%0A        BigDecimal big = BigDecimal.valueOf(0.786);%0A        // BigDecimal big = BigDecimal.valueOf(0.8);%0A        // BigDecimal big = BigDecimal.valueOf(0.79);%0A        System.out.println(big.setScale(2, RoundingMode.HALF_UP).multiply(BigDecimal.valueOf(10)));%0A        System.out.println(big.setScale(2, RoundingMode.HALF_UP).multiply(BigDecimal.valueOf(10)).doubleValue());%0A    %7D%0A%7D%0A

String 2 Long