|
@@ -13,6 +13,8 @@ import java.util.Objects;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Stream;
|
|
import java.util.stream.Stream;
|
|
|
|
|
|
|
|
+import static com.slibra.common.constant.MyConstants.INT_2;
|
|
|
|
+
|
|
public class DecimalUtils {
|
|
public class DecimalUtils {
|
|
|
|
|
|
|
|
|
|
@@ -60,8 +62,9 @@ public class DecimalUtils {
|
|
System.out.println(list.toString());
|
|
System.out.println(list.toString());
|
|
System.out.println(JSON.toJSONString(list));
|
|
System.out.println(JSON.toJSONString(list));
|
|
|
|
|
|
- System.out.println(getAbsForArray("a", 1));
|
|
|
|
|
|
+// System.out.println(getAbsForArray("a", 1));
|
|
|
|
|
|
System.out.println(new BigDecimal(1.1).divide(new BigDecimal(1.3), 0, RoundingMode.HALF_UP));
|
|
System.out.println(new BigDecimal(1.1).divide(new BigDecimal(1.3), 0, RoundingMode.HALF_UP));
|
|
|
|
+ System.out.println(DecimalUtils.getAbsAndScale(new BigDecimal("3486.000000"), INT_2));
|
|
}
|
|
}
|
|
}
|
|
}
|