@Override
  public int compareTo(byte[] value, int offset, int length) {
    BigDecimal that = Bytes.toBigDecimal(value, offset, length);
    return this.bigDecimal.compareTo(that);
  }
A BigDecimal comparator which numerical compares against the specified byte array
hbase-client/src/main/java/org/apache/hadoop/hbase/filter/BigDecimalComparator.java