Contact

QUOTIENT Function (Gnumeric)

Math Beginner Gnumeric

Learn the QUOTIENT function in Gnumeric: Returns the integer portion of a division.

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

The QUOTIENT function in Gnumeric is used for this task: Returns the integer portion of a division. Return the integer part of a division.

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

=QUOTIENT(numerator,denominator)

Both arguments are required; denominator must be nonzero. The help labels them integers, while the inspected callback actually divides the numeric values and truncates the result toward zero. Use integer counts for the packaging examples here. The result is the integer portion of the division, not a rounded-up capacity and not the remainder.

Worked example

=QUOTIENT(17,5)

Expected result: 3.

Why it works: Return the integer part of a division.

Packaging and signed arithmetic

For 17 items packed five to a complete box, the original =QUOTIENT(17,5) returns 3. Those three full boxes hold 15 items, leaving 2 unpacked. If the task is how many boxes are needed to hold every item, 3 is insufficient: that is a round-up question rather than a count of complete groups.

Formula Expected result
=QUOTIENT(17,5) 3
=QUOTIENT(-17,5) -3
=QUOTIENT(17,-5) -3
=QUOTIENT(-17,-5) 3
=QUOTIENT(17,0) #DIV/0!

Independently, 17/5 = 3.4, so truncation gives 3. A negative division result is -3.4 and truncates to -3, not the floor value -4. The four sign combinations and zero-divisor error were included in the bounded native suite.

Advanced use: compute a matching remainder

If q = QUOTIENT(n,d), a remainder consistent with this truncating quotient is n − q×d. For n = -17 and d = 5 this is -17 − (-3×5) = -2. Keep that expression beside the quotient when signed corrections or balances can occur.

Gnumeric’s help prints a relation using QUOTIENT×denominator + MOD = numerator. Do not apply it blindly to opposite-signed operands: the native comparison =MOD(-17,5) is 3, so (-3×5)+3 equals -12, not -17. MOD follows a different signed-remainder convention. The identity works for the positive packaging example, but the source help’s unqualified statement is too broad. This explicit counterexample is why separating quotient and remainder conventions matters.

For a worksheet dataset, put item counts in A2:A5 and positive package sizes in B2:B5. Use =QUOTIENT(A2,B2) in C2 and =A2-C2*B2 in D2, then fill down. Validate positive package sizes and nonnegative item counts if the business task does not allow signed values.

Common problems and practical checks

  • A zero denominator returns #DIV/0! in the implementation and the native fixture. Missing package-size data should be resolved rather than replaced with an arbitrary nonzero value.
  • Negative results use truncation toward zero; do not substitute INT(numerator/denominator) and expect the same answer for negative fractions.
  • QUOTIENT counts complete groups. If all items must fit, separately account for a nonzero remainder.
  • The help’s argument labels say integers, but source inspection shows no pre-truncation of each operand. Avoid assuming QUOTIENT(17.9,5.1) means QUOTIENT(17,5).
  • Validate finite numeric inputs and practical magnitudes. Overflow and extreme rounding behavior were not certified by the bounded tests.

Documentation and verification