Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > Functions > Mathematical and Numeric Functions

ABS(x) ABSolute value

Scroll Prev Top Next More

Returns the absolute value of X.

Same as IF THEN ELSE (X < 0, - X,  X).

Units:ABS(any unit) --> same units


ABS (5.0) is equal to 5.0.

ABS (-5.0) is equal to 5.0.


Sample model: ABS.mdl in FunctionExamples