Investment Studio > Expressions > Functions > Math & Trig > EVEN

integer even(integer argument)

Returns the argument rounded away from zero to the nearest even integer.

Examples

=even(3.5)

equals 4 (first step after 3.5 in the sequence 0, 2, 4)

=even(-1)

equals -2 (first step after -1 in the sequence 0, -2).

See also ceiling, floor, frac, int, mround, odd, round, rounddown, roundup, trunc.