Contact

DELTA Function (OpenOffice Calc)

Engineering Intermediate OpenOffice Calc

Learn the DELTA function in Apache OpenOffice Calc: Tests whether two values are equal.

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.

DELTA compares two numeric values for equality and returns the numeric indicator 1 or 0. It does not return their difference. The pinned Analysis add-in uses a direct equality comparison of the numeric values; there is no built-in tolerance for nearly equal floating-point results.

Syntax and arguments

=DELTA(number_1; number_2)
=DELTA(number_1)

The first numeric argument is required. The optional second argument defaults to zero. The source obtains it through the Analysis argument converter with default 0.0. Ordinary equality gives 1 and inequality gives 0. The guide uses explicit numbers; every text/blank or locale-specific conversion is not inferred from the default rule. Examples use English function names and semicolon argument separators.

Reproducible examples

Formula Expected result
=DELTA(7;7) 1
=DELTA(7;8) 0
=DELTA(0) 1
=DELTA(5) 0
=DELTA(-3;-3) 1
=DELTA(1;1+2^-40) 0

The first formula preserves the original example and result. Its historical comparable LibreOffice 25.2 check was not an OpenOffice test. New values are independently checked reference expectations; no fresh native application or GUI result is claimed. Quoted results indicate text, including "" for zero-length text.

Practical worksheet: create an equality indicator for numeric codes

Enter expected codes 10, 20, 30 and 40 in A2:A5, and recorded codes 10, 25, 30 and 41 in B2:B5. In C2 enter =DELTA(A2;B2) and fill down. Results are 1, 0, 1 and 0. =SUM(C2:C5) gives 2 matching rows.

In D2 use =IF(C2;"Match";"Different") and fill down. The labels are Match, Different, Match and Different. The comparison is appropriate only because these are deliberately numeric codes; leading-zero or arbitrary-length identifiers may need a text-preserving comparison instead.

Advanced applications

Use the zero default explicitly. For residuals 0, -2 and 3 in A2:A4, DELTA(A2) filled down gives 1,0,0. It flags exact zero, not whether the residual is acceptably small. Label the result Exact zero so later readers do not mistake it for a tolerance test.

Distinguish near equality. The values 1 and 1+2^-40 are different in the ordinary binary64 reference model, even when their displayed decimals look identical. DELTA returns 0. A separately chosen rule such as ABS(A2-B2)<=1E-10 would accept that difference, but the threshold is a policy choice and is not supplied by DELTA.

Weight matches. With comparison flags 1,0,1,0 and weights 2,3,4,5 in D2:D5, use E2==C2*D2 and fill down. Contributions are 2,0,4,0 and total 6. This keeps the equality test separate from its numeric consequence.

Errors, edge cases and troubleshooting

The word delta often means a difference in mathematics, but DELTA(7;8) is 0 rather than -1. Subtract the values when the signed difference is the intended result. The function also does not test greater-than, threshold attainment or approximate agreement.

Direct floating-point equality can distinguish values that share the same displayed rounding. Conversely, a value already rounded or stored imprecisely cannot reveal the original difference. Decide whether equality should be exact, rounded to a defined unit, or tolerance-based before choosing a formula. Do not silently change the rule merely to make a control pass.

The optional-argument converter can process certain supplied types and apply defaults to absence, but this does not establish universal coercion behavior for both arguments. Locale-sensitive text parsing and imported arrays were not executed. Non-numeric inputs and upstream errors should be diagnosed in their original cells. Keep identifiers in their proper type and do not treat an equality indicator as a complete validity check.

Documentation and verification

See the Apache OpenOffice DELTA reference, 4.1.16 math help, core numeric predicates and aggregation, Roman conversion, and Analysis callbacks. The original core/help/Analysis snapshots were retrieved October 13, 2026 and re-read for this guide. Additional retained header evidence is identified separately in the batch records. First introduction and final functioning version remain unknown, separate from documented 4.1.16 support. Source rules and independent arithmetic are not native tests.