public static double toFixed(double value, int precision) {
        return BigDecimal.valueOf(value).setScale(precision, RoundingMode.HALF_UP).doubleValue();
    }
@Test
    public void toFixedFloat() {
        float actualF = TbUtils.toFixed(floatVal, 3);
        Assertions.assertEquals(1, Float.compare(floatVal, actualF));
        Assertions.assertEquals(0, Float.compare(29.298f, actualF));
    }