EVEN Function (OpenOffice Calc)
Learn the EVEN function in Apache OpenOffice Calc: Rounds a positive number up and negative number down to the nearest even integer.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Availability and version history
- Introduced: Documented by Apache OpenOffice 4.1.16; original introduction not established.
- Availability: Supported in Apache OpenOffice 4.1.16, verified against its function registry. This identifies a supported release, not a final working version.
- Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
- Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.
EVEN rounds a number away from zero to an even integer. It is useful when a positive requirement must be met in pairs. The direction matters: a negative input becomes at least as negative, rather than moving toward positive infinity. EVEN changes a number; ISEVEN tests one.
Syntax and arguments
=EVEN(number)
number is the single required numeric argument. There is no digits, significance or rounding-mode parameter. Positive values move upward to the next even integer, negative values move downward to the next even integer, and an already even integer is unchanged. Zero returns zero. Formulas here use English function names and semicolon argument separators.
Reproducible examples
| Formula | Expected result |
|---|---|
=EVEN(5) |
6 |
=EVEN(2.1) |
4 |
=EVEN(2) |
2 |
=EVEN(-2.1) |
-4 |
=EVEN(-5) |
-6 |
=EVEN(0) |
0 |
The first formula preserves the original worked example. Its older comparable LibreOffice 25.2 check was not execution in OpenOffice. These new results are independently calculated expectations; no fresh native or GUI test is claimed.
Practical worksheet: plan seats arranged in pairs
Enter 5, 6 and 7 in A2:A4 for the numbers of people. In B2 enter =EVEN(A2) and fill down. Required seat counts are 6, 6 and 8. In C2 enter =B2/2 and fill down: 3, 3 and 4 pairs. In D2 enter =B2-A2 and fill down: 1, 0 and 1 spare seats.
This model assumes each seat can accommodate one person and all seats are available in pairs. If A is a measured noninteger requirement instead of a head count, EVEN still rounds upward for positive inputs, but the model should state what a fraction of a seat means. Negative attendance is invalid input for this application even though EVEN itself accepts negative numbers.
Advanced applications
Choose the rounding rule deliberately. EVEN(5)=6, whereas ODD(5)=5 and ROUND(5;0)=5. If a positive requirement must be met in groups of four, EVEN is insufficient: =ROUNDUP(A2/4;0)*4 expresses that different packaging rule. With A2=5 it returns 8.
Audit instead of transform. =ISEVEN(A2) returns a logical test under its own integer-conversion rules. EVEN(A2) returns a new numeric value. Comparing A2 to EVEN(A2) can detect whether an already numeric value changes, but does not validate a positive head count by itself.
Understand signed behavior. For -2.1, EVEN gives -4. A rule meaning the smallest even integer greater than or equal to a signed value would give -2 instead; that is a different mathematical operation. Do not substitute one rule for the other in a signed balance model.
Errors, edge cases and troubleshooting
The ordinary positive case is not rounding to the nearest even integer. EVEN(2.1)=4 even though 2 is nearer. The function increases magnitude whenever an input is not already an even integer. Negative nonzero inputs therefore move farther from zero.
Zero is the exception to any informal instruction to always advance to the next value: EVEN(0)=0 and EVEN(2)=2. It rounds to an allowed value, not strictly beyond the current one. Very small floating-point residuals near an integer boundary can be affected by the interpreter’s approximate rounding helpers; the displayed decimal alone may not reveal the stored value.
Formatting a result with no decimal places does not replace EVEN, because number formatting does not change the stored amount. Validate numeric inputs before applying a quantity rule, and trace upstream errors instead of assuming they will be ignored. Use a scalar helper formula per row and fill down in OpenOffice rather than assuming a modern automatic spill behavior.
Related functions
Documentation and verification
See the Apache OpenOffice EVEN reference, versioned mathematical-function help, and 4.1.16 implementation. The saved official source snapshots were re-read for this guide; their original retrieval records remain in the evidence package. Source inspection and independent arithmetic are not application execution. The lifecycle section identifies a supported release; the original introduction and final functioning release remain unestablished.