diff --git a/Java/BigDecimalLose.java b/Java/BigDecimalLose.java new file mode 100644 index 0000000000000000000000000000000000000000..e36f42bc91ae942a6c5ee8dd8341ddf1054dc34a --- /dev/null +++ b/Java/BigDecimalLose.java @@ -0,0 +1,10 @@ +import java.math.BigDecimal; + +public class BigDecimalLose { + + public static void main(String[] args) { + System.out.println(new BigDecimal(0.2)); + } + + //操作订单数据的时候金额直接使用new BigDecimal 导致精度缺失 +} diff --git a/php/shell.php b/php/shell.php deleted file mode 100644 index 3161175b4983d17a6fbbffe41bad6a6e8fe42ddd..0000000000000000000000000000000000000000 --- a/php/shell.php +++ /dev/null @@ -1,4 +0,0 @@ - \ No newline at end of file