39,584条结果 - java中保留小数问题!!! 问:有一个double型数字12.3659963 我想要12.37 怎么做呢: 答:double i = 12.3659963; //设数值int j = (int)Math.round(i ...
zhidao.baidu.com