1package cn.cccc.demo;2class MathUtil{3    private MathUtil(){};4
5    public static double round(double num,  int scale){6       return Math.round(num * Math.pow(10,  scale)) / Math.pow(10, scale);7    }8}9public class ThreadDemo {10    public static void main(String[] args)   throws Exception{11       System.out.println(MathUtil.round(19.46735,  2));12    }13} 
  
 