double num = 168588866654.0d; System.out.println(num); java.text.DecimalFormat df = new java.text.DecimalFormat("##########.00"); System.out.println(df.format(num));