static BigDecimal normalize(BigDecimal val) {
    return null == val ? null : val.stripTrailingZeros().round(DEFAULT_MATH_CONTEXT);
  }
Strip all trailing zeros to ensure that no digit will be zero and round using our default
context to ensure precision doesn't exceed max allowed. From Phoenix's {@code NumberUtil}.
@return new {@link BigDecimal} instance
hbase-common/src/main/java/org/apache/hadoop/hbase/util/OrderedBytes.java