ROUND Function (Gnumeric)
Learn the ROUND function in Gnumeric: Rounds a number to a predefined accuracy.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
The ROUND function in Gnumeric is used for this task: Rounds a number to a predefined accuracy. Round a number to two decimal places.
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
=ROUND(x,[d])
x is the required number to round. d is an optional integer count of decimal places and defaults to 0. Positive d retains places after the decimal point; zero rounds to an integer; negative d rounds to tens, hundreds and so on. The inspected callback converts a non-integer d to an integer by truncation toward zero, but using an integer makes the intention clearer. Gnumeric permits the one-argument form, even if another spreadsheet’s syntax requires a second argument.
Nearest rounding is distinct from always moving upward or away from zero. In the bounded tie tests, ROUND(2.5) gives 3 and ROUND(-2.5) gives -3: ties move away from zero, not to the nearest even integer. English examples here use commas; adjust separators to your locale.
Worked example
=ROUND(12.345,2)
Expected result: 12.35.
Why it works: Round a number to two decimal places. For decimal results, display formatting can change how many digits appear without changing the underlying number.
Signed values, decimal places and display
| Formula | Expected value |
|---|---|
=ROUND(2.5) |
3 |
=ROUND(-2.5) |
-3 |
=ROUND(125,-1) |
130 |
=ROUND(-125,-1) |
-130 |
=ROUND(12.345,2.9) |
12.35 |
The last case illustrates conversion of d to 2. It is not a recommendation to supply fractional precision. With d = -1, the neighboring multiples of ten around 125 are 120 and 130; the tie selects 130. The symmetric negative case selects -130.
For a reproducible amount table, put 12.345 in A1 and 12.345 in A2. In B1 use =ROUND(A1,2) and copy to B2. Each result is 12.35. Adding the rounded values gives 24.70, whereas rounding the unrounded total 24.69 to two decimals gives 24.69. Decide whether your process rounds each line or only the total before constructing the calculation.
Formatting A1 to two decimal places can display 12.35 without changing its stored 12.345 value. ROUND creates a rounded result used by downstream formulas. It does not change the original input cell, and number formatting does not substitute for a rounding policy.
Common problems and practical checks
- Unexpected totals often come from rounding individual rows rather than the final sum, or from mistaking display formatting for changed values.
- Check the sign of d: 2 means hundredths; -2 means hundreds. The sign of x does not reverse that precision scale.
- A visible decimal tie can be affected by binary floating-point representation and Gnumeric’s rounding helpers; do not extrapolate these small fixtures to extreme magnitudes or every near-boundary value.
- Text that cannot be treated as a number is not an appropriate rounding input. Resolve upstream errors instead of concealing them with a rounded display.
The retained NEWS records ROUND fixes in 0.55/0.56, 1.12.53 and 1.12.59. Those are maintenance milestones, not a proven first introduction. The 1.12.59 history reinforces why native 1.12.57 tests are scoped to these bounded examples rather than all newer behavior.
Related functions
Documentation and verification
- Gnumeric official function reference
- Gnumeric function catalog
- Historical evidence reported a comparable LibreOffice Calc 25.2 example; that was not a Gnumeric test. The present guide separately checks the listed small scalar cases in Gnumeric ssconvert 1.12.57 under C.UTF-8. Source contracts and untested edge cases refer to retained official 1.12.62 source; they are not a claim of 1.12.62 execution. No GUI or screenshot is claimed.
- Pinned mathematical function help and implementation and release history.