// It's the super precise version! static double roundToOneHundredth(double d) { ret new BigDecimal(d).setScale(2, RoundingMode.HALF_UP).doubleValue(); }