Contact

INT Function (Gnumeric)

Math Beginner Gnumeric

Learn the INT function in Gnumeric: Rounds a number down to the nearest integer.

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

The INT function in Gnumeric is used for this task: Rounds a number down to the nearest integer. Round down to the next lower integer, even for negative numbers.

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

=INT(x)

x is the one required numeric argument; there are no optional precision or direction arguments. INT returns the largest integer not greater than x, commonly called floor. For a negative fraction, that means moving farther from zero. TRUNC instead removes the fractional part toward zero. The inspected Gnumeric callback uses its adjusted floor helper, so claims about extremely close floating-point boundaries require separate checks.

Worked example

=INT(-2.4)

Expected result: -3.

Why it works: Round down to the next lower integer, even for negative numbers.

Signed measurement dataset

Place -2.4, -2, 0 and 2.4 in A1:A4. Enter =INT(A1) in B1 and copy down. Expected B1:B4 is -3, -2, 0, 2. The literal equivalents were recalculated in Gnumeric 1.12.57. The retained original example =INT(-2.4) therefore remains -3.

The independent check is the interval inequality k ≤ x < k+1. For x = -2.4, k = -3 works because -3 ≤ -2.4 < -2. The integer -2 does not work because it is greater than x. This explains the negative result without relying on a vague phrase such as “remove the decimals.”

For comparison, =TRUNC(-2.4) returns -2 in the native comparison case. Choose INT when you need a lower interval boundary; choose truncation when you need the integer portion toward zero.

Advanced use: consistent unit buckets

If a signed position is measured in metres, INT(position) assigns it to a unit-width bucket whose left boundary is an integer. Positions -0.2 and 0.2 belong to buckets -1 and 0 respectively. Truncation would put both in bucket 0, breaking that interval convention around the origin.

For a positive bucket width w, applying INT(x/w) gives a bucket index, and multiplying by w gives its lower boundary. Keep w positive and explicit. This is an arithmetic construction, not a claim that INT has a second width argument. For datetime serials, the integer part commonly identifies a day, but interpreting it requires knowing the workbook date convention and whether the value represents a date at all.

Common problems and practical checks

  • If a negative input gives an answer one lower than expected, check whether you intended truncation instead of floor.
  • Whole-number inputs remain unchanged; INT(-2) is -2 and INT(0) is 0. It does not always subtract one from negative numbers.
  • A cell showing no decimals can still contain a fraction. Inspect the stored value or formula before deciding INT is wrong.
  • Check numeric input types and propagate meaningful upstream errors; an empty-looking cell is not automatically a measured zero.
  • Very large numbers and values extremely close to an integer are outside this small native fixture. Gnumeric uses a floating-point-aware helper, so avoid asserting exact real-number behavior for every machine-representable boundary.

NEWS records an INT(-1) fix in 1.4.2 and earlier fixes in 0.27. These establish maintenance history without identifying the original introduction.

Documentation and verification