Contact

ODD Function (OpenOffice Calc)

Math Intermediate OpenOffice Calc

Learn the ODD function in Apache OpenOffice Calc: Rounds a positive number up and negative number down to the nearest odd 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.

ODD rounds a number away from zero to an odd integer. Positive inputs move upward and negative inputs move downward. Already odd integers remain unchanged. This is a numeric rounding operation, whereas ISODD returns a logical parity test.

Syntax and arguments

=ODD(number)

number is one required numeric argument. There is no decimal-places argument or significance option. The pinned 4.1.16 implementation uses approximate ceiling for nonnegative input and approximate floor for negative input, then advances to an odd result if necessary. In particular, ODD(0) returns 1. Formulas here use English function names and semicolon argument separators.

Reproducible examples

Formula Expected result
=ODD(4) 5
=ODD(2.1) 3
=ODD(3) 3
=ODD(-2.1) -3
=ODD(-4) -5
=ODD(0) 1

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: choose an odd-sized review panel

Enter 4, 5 and 6 in A2:A4 for minimum panel sizes. In B2 enter =ODD(A2) and fill down. The resulting sizes are 5, 5 and 7. In C2 enter =B2-A2 and fill down to show the extra places: 1, 0 and 1.

This worksheet enforces an odd positive head count, but it does not guarantee a decision without a tie: abstentions, absences or more than two choices can still matter. Treat the arithmetic as one component of the panel rule. Validate A as a positive integer count; zero would otherwise become one, which may conceal a missing requirement.

Advanced applications

Build a symmetric window. If A2=4 is a positive minimum number of samples for a centered moving window, =ODD(A2) gives 5. With that result in B2, =(B2-1)/2 gives 2 samples on each side of the central sample. For A2=6, the corresponding results are 7 and 3. The formula chooses a window size; it does not compute the moving average or solve missing end samples.

Compare a parity test. ODD(4) returns the number 5; ISODD(4) returns FALSE. Use the test when validating rather than silently altering the input. Neither function by itself establishes that a value is a positive integer count.

Compare signed directions. ODD(-4)=-5. A mathematical rule asking for the least odd integer greater than or equal to -4 would instead give -3. If a signed application needs that rule, an away-from-zero function is the wrong choice.

Errors, edge cases and troubleshooting

ODD does not mean nearest odd integer: ODD(3.1) is 5 although 3 is closer. It moves away from zero unless the value already meets the odd-integer rule. ODD(-3) remains -3 and ODD(3) remains 3; it does not always advance strictly to the next odd number.

ODD(0)=1 is important in automated models. A zero representing no work, no objects or an uninitialized input should not automatically create one unit. Handle that business case explicitly before rounding. ODD(-0.1) gives -1, so a negative value just below zero behaves differently from exact zero.

The inspected implementation uses floating-point approximate rounding helpers. Values extremely close to integer boundaries need local verification if the distinction matters; these ordinary examples do not certify every binary rounding boundary. A zero-decimal display format does not apply this rounding rule to the stored value. Diagnose input errors upstream, and use row-by-row helper formulas rather than presuming automatic spill-array support.

Documentation and verification

See the Apache OpenOffice ODD 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.