java如何限制小数长度 java浮点数保留两位小数 Java计算中,如何设定小数点保留位数?方法1:舍入双精度f=111231.5585bigdecimal B=new BigDecimal(f)double F1=B.... 2021-03-31 1108次浏览