public static double toFixed(double value, int precision) {
        return BigDecimal.valueOf(value).setScale(precision, RoundingMode.HALF_UP).doubleValue();
    }
@Test
    public void toFixedDouble() {
        double actualD = TbUtils.toFixed(doubleVal, 3);
        Assertions.assertEquals(-1, Double.compare(doubleVal, actualD));
        Assertions.assertEquals(0, Double.compare(1729.173, actualD));
    }