Contact

ISODD Function (Gnumeric)

Information Beginner Gnumeric

Learn the ISODD function in Gnumeric: Returns TRUE if the value truncated to integer is odd.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

ISODD returns TRUE or FALSE according to whether the integer part of a numeric value is odd. It can support alternating labels and small integer checks, but it does not establish that the original input was itself a whole number.

Syntax and fractional behavior

=ISODD(n)

n is one required numeric argument. For ordinary finite values, the implementation takes the absolute magnitude modulo 2. The result corresponds to discarding the fraction toward zero and checking the remaining integer. Thus 3.9 and -3.9 test odd, while 2.9 and -2.9 do not.

This differs from applying INT first to a negative fraction. INT(-2.9) is -3, but truncation toward zero gives -2. The data definition determines which transformation is appropriate; do not insert INT automatically.

Retained example

=ISODD(7)

The expected result is TRUE. =ISODD(0) gives FALSE because zero is even.

Work through signed inputs

Enter 7, 7.9, -3.9, -2.9 and 0 in A2:A6. Put =ISODD(A2) in B2 and fill down. Expected outputs are TRUE, TRUE, TRUE, FALSE and FALSE.

The last two fractional examples expose the truncation rule. An integer’s sign does not change parity: 3 and -3 are both odd. A TRUE result for 7.9 does not establish that 7.9 is an acceptable integer identifier.

For a whole-number-only field, add a separate validity check against the required integer rule. Keep validation and classification distinct rather than treating an oddness result as proof that the input is valid.

Advanced use: alternating groups

Put sequence numbers 1 through 6 in A2:A7. Enter =IF(ISODD(A2),“Group A”,“Group B”) in B2 and fill down. The labels alternate Group A, Group B, Group A, Group B, Group A, Group B.

These labels belong to the stored sequence numbers. Sorting records should keep the number with its record. A rule based on the current worksheet row instead would change its meaning after sorting or insertion; choose the interpretation deliberately.

For a repeating two-phase process, oddness can select one phase and evenness the other. It does not directly generalize to a three-phase cycle. Keep record identifiers separate from sequence positions if identifiers have gaps or nonnumeric prefixes.

Precision and troubleshooting

Very large numbers may not represent every consecutive integer exactly in the spreadsheet’s floating-point type. The inspected source warns that sufficiently large values will always test false. Do not use ISODD to validate the parity of oversized account-like codes; preserve long identifiers as text.

Inspect stored values when a rounded display seems inconsistent. A displayed 8 might store 7.9 and therefore return TRUE. Text, empty-cell and error coercion should not substitute for explicit validation without testing that input path.

This guide’s native controls use typed numeric inputs of modest magnitude. The formula can classify those values predictably without establishing every import or coercion behavior of a different data source.

Availability and verification

Version coverage: Gnumeric 1.12.57 has the scoped checks below. The 1.12.62 evidence is a documentation/source check dated October 14, 2026.

  • Introduced: Original introduction not established. The earliest demonstrated support in this guide is 1.12.57.
  • Availability: Supported in Gnumeric 1.12.62, based on the function-specific registration.
  • Scope: Desktop; the fn-info function module must be included and enabled.
  • Checked: October 14, 2026. Documentation/source check; no new native test in Gnumeric 1.12.62.

The executable contract is also present in the official Gnumeric 1.12.57 fn-info source. The saved source was originally retrieved on October 17, 2026 and re-inspected for this guide. The last functioning release is not established; support in a named version is not a retirement claim.

On October 17, 2026, Gnumeric ssconvert 1.12.57 recalculated a synthetic workbook in the C.UTF-8 locale. Scoped controls: =ISODD(7) → True; =ISODD(7.9) → True; =ISODD(-3.9) → True; =ISODD(-2.9) → False; =ISODD(0) → False. These are native calculation-engine results, not GUI tests or screenshots. Other tutorial layouts and displayed outputs are independent expectations unless covered by these exact formulas. Input/output files, preserved formulas, raw values and hashes were retained. The XLSX importer logged an unused workbookProtection-element warning; changed-input controls and recorded results were checked.

Official references