int multiplier = (int) Math.pow(10, 9); // 桁に応じて,10の乗数を求める
System.out.println(multiplier);
double multiplied = value * multiplier; // 乗数をかける
System.out.println(multiplied);
double rounded = (multiplied + 0.5); // 少数第1位で四捨五入する
System.out.println(rounded);
rounded = (int) (multiplied + 0.5); // 少数第1位で四捨五入する
System.out.println(rounded);
double newValue = (double) (rounded / multiplier);// 乗数で割って、数を戻す
// double newValue = rounded / multiplier;// 乗数で割って、数を戻す