public class MathUtil{
private MathUtil(){}
public static double round(double num , int scale){
return Math.round(num * Math.pow(10.0,scale))/Math.pow(10.0,scale);
}
}
自定义四舍五入工具类
于 2022-09-20 15:56:59 首次发布