code: public Decimal min(Decimal other) {
          if ((this == NaN) || (other == NaN)) {
              return NaN;
          }
          return (compareTo(other) <= 0 ? this : other);
      }
docs: Returns the minimum of this {@code Decimal} and {@code other}.
  @param other value with which the minimum is to be computed
  @return the {@code Decimal} whose value is the lesser of this
  {@code Decimal} and {@code other}.  If they are equal,
  as defined by the {@link #compareTo(Decimal) compareTo}
  method, {@code this} is returned.