ta4j/src/main/java/eu/verdelhan/ta4j/Decimal.java
public Decimal min(Decimal other) {
        if ((this == NaN) || (other == NaN)) {
            return NaN;
        }
        return (compareTo(other) <= 0 ? this : other);
    }
public Decimal min(Decimal other) {
        if ((this == NaN) || (other == NaN)) {
            return NaN;
        }
        return (compareTo(other) <= 0 ? this : other);
    }
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.