public class MathUtil extends Object
public static String roundStr(double number, int digit)
number - 被保留小数的数字digit - 保留的小数位数public static double round(double number,
int digit)
number - 被保留小数的数字digit - 保留的小数位数Copyright © 2015. All rights reserved.