public BigDecimal max (BigDecimal val)

Returns the maximum of this BigDecimal and val.

Parameters:
val    value with which the maximum is to be computed.

Returns:  the BigDecimal whose value is the greater of this BigDecimal and val. If they are equal, as defined by the compareTo method, this is returned.

See also:
compareTo(java.math.BigDecimal)