Truncates X to the integer nearest zero. For positive values of X, returns the largest integer smaller than or equal to X. Same as QUANTUM(X,1).
Note that the Excel INT function is the same as INTEGER for X>=0, but for X<0 it is different (it behaves like the mathematical Floor function).
The Vensim INTEGER function's behavior is consistent with typical mathematical software and programming languages.
Units: INTEGER(units) -> units
Output and input units must match.
Example
INTEGER(5.4) is 5.0
See also: QUANTUM
Sample model: INTEGER.mdl in FunctionExamples