コード例 #1
0
 public static double round(double d) {
   return Math.round(d * 1000.0) / 1000.0;
 }