public static BigDecimal asBigDecimal(Number num) {
        return num instanceof BigDecimal ? (BigDecimal) num : BigDecimal.valueOf(num.doubleValue());
    }
@Test
    public void asBigDecimal() {
        assertThat(OperatorUtils.asBigDecimal(1)).isEqualTo(new BigDecimal("1.0"));
        assertThat(OperatorUtils.asBigDecimal(1.0)).isEqualTo(new BigDecimal("1.0"));
        assertThat(OperatorUtils.asBigDecimal(new BigDecimal("1.0"))).isEqualTo(new BigDecimal("1.0"));
    }