Contact

EVEN Function (Gnumeric)

Math Beginner Gnumeric

Learn the EVEN function in Gnumeric: 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

The EVEN function in Gnumeric is used for this task: Rounds a positive number up and negative number down to the nearest even integer. Round a number away from zero to an even integer.

This guide explains how to read the formula, reproduce a concrete example, interpret its result and recognize common input mistakes.

Availability and version history

  • Introduced: Documented by 1.12.62; original introduction not established.
  • Availability: Supported in Gnumeric 1.12.62, based on the function-specific registration.
  • Scope: Desktop; the fn-math function module must be included and enabled.
  • Checked: Official 1.12.62 source originally retained October 13–14, 2026; inspected again October 17. Bounded native 1.12.57 calculation checks are reported below. Last functioning release is not established; no retirement claim.

Syntax and arguments

=EVEN(x)

x is the single required number. The result is an even integer whose magnitude is at least the magnitude of x, moving away from zero when adjustment is needed. There is no optional digits argument. An already even integer is unchanged, and zero remains zero. This is not nearest-even tie rounding: it rounds every non-even input outward.

Worked example

=EVEN(5)

Expected result: 6.

Why it works: Round a number away from zero to an even integer.

Positive, negative and zero cases

Formula Expected result
=EVEN(5) 6
=EVEN(-5.1) -6
=EVEN(0) 0
=EVEN(6) 6
=EVEN(0.1) 2

The original positive example is preserved. The independent check for -5.1 is that -6 is even and lies farther from zero; -4 is nearer zero and would fail the outward-rounding rule. For 0.1 the next nonnegative even integer with sufficient magnitude is 2, not 0. Every row above is included in the bounded native suite.

Paired-capacity example

Suppose equipment must be allocated in pairs. Put required units 5, 6 and 0 in A2:A4. In B2 use =EVEN(A2) and fill down, yielding 6, 6 and 0. The spare capacity B−A is 1, 0 and 0. If requirements can include fractional planning estimates, EVEN still moves outward to a whole even count, but decide whether fractional units are meaningful in the first place.

For positive requirements this avoids allocating fewer units than requested. A negative requirement produces a negative even result; it does not automatically reject invalid planning data. Validate nonnegative inputs separately when the domain is inventory or capacity.

Advanced distinction: parity, multiple and rounding rule

EVEN rounds to multiples of two; it does not simply test whether the current value is even. It also is not a general “round to a package size” function. For packages of another size, choose a function or expression whose multiple and direction are explicitly specified. Do not multiply or divide by arbitrary factors and assume all negative and zero cases remain equivalent without checking.

The word “up” can be misleading for negative numbers: -6 is numerically less than -5.1, while its absolute magnitude is greater. Describing the function as away from zero avoids that ambiguity. A nearest-number rounding function may choose a different result even when both outputs are integers.

Common problems and practical checks

  • Already even integers stay unchanged: EVEN(6) is 6, not 8.
  • Zero stays zero. If your task requires at least one pair even when demand is zero, that is a separate minimum-allocation rule.
  • Negative fractions move to a more negative even integer. Do not interpret this as rounding toward positive infinity.
  • Formatting a fractional input without decimals does not make it an integer; EVEN operates on the stored value.
  • Validate numeric, nonnegative demand for capacity tasks. An algebraically valid negative output can still be operationally invalid.
  • NEWS records an EVEN/ODD large-number fix in 1.7.0. The small native cases here do not certify all extreme floating-point values or establish the original introduction date.

Documentation and verification