摘要: import java.text.DecimalFormat; double obj= 1.56 // #.#-1位, #.##-2位,#.###-3位 DecimalFormat df = new DecimalFormat("#.#"); String obj1= df.format(obj); 阅读全文
posted @ 2020-03-27 14:19 mkay 阅读(3614) 评论(0) 推荐(0)