Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > Functions > Mathematical and Numeric Functions

MAX(A,B) MAXimum of Two Alternatives

Scroll Prev Top Next More

Returns the larger of A and B.

Same as IF THEN ELSE(A > B, A, B).

 

Units:MAX(unit, unit) --> unit (all arguments must have the same units)

Examples

MAX(1,2) is equal to 2.0.

MAX(1,1) is equal to 1.0.  

See also: MIN.

Sample model: MAX MIN.mdl in FunctionExamples