PrecisionCalc
xl
Precision
Get Your Numbers Right

 

xlpEVEN2

Rounds a number down to the next even integer, with up to 32,767 significant digits of precision.

Syntax

xlpEVEN2(num,format_negative,format_thousands,format_currency,exponential_notation)

num Required. The number to be rounded up to the next even integer.
round_neg_away_from_zero Optional. Rounds negatives away from zero, instead of toward zero. False by default.
format_negative Optional. Determines whether negatives are formatted with a leading hyphen ("-"), or parentheses ("()"). Set to 1 to format negatives with a leading hyphen. Set to 2 for parentheses. 1 by default.

You can also format negatives with a red font.

format_thousands Optional. Determines whether thousands separators are included. Set to TRUE to include thousands separators. FALSE by default.
format_currency Optional. Determines whether currency symbol is included. Set to TRUE to include currency symbol. The currency symbol will be added either to the beginning or to the end of the result, whichever is appropriate for the locale. FALSE by default.
exponential_notation Optional. Determines whether result is formatted in exponential notation. Set to TRUE to format in exponential notation. FALSE by default.

Remarks

Examples

Formula Description Result
=xlpEVEN2(2.5) 2.5 rounded down to the next even integer. 2
=xlpEVEN2(-2.5) -2.5 rounded down to the next even integer. -2
=xlpEVEN2(-2.5,TRUE) -2.5 rounded down to the next even integer, with negatives rounded away from zero. -4

See Also

xlpEVEN
xlpODD
xlpODD2