ROUND Function in ONLYOFFICE Spreadsheet Editor: Examples and Syntax
ROUND in ONLYOFFICE Spreadsheet Editor: round a numeric value to a chosen number of digits with examples, advanced use, errors, troubleshooting and official sources.
Verification status: Eight signed and precision rounding cases checked in ONLYOFFICE Desktop Editors Community 10.0.0.169 on Linux x64; additional examples independently calculated. Other clients and builds untested. How formula examples are checked
ROUND changes a calculated number to a chosen decimal place. Use it when the required rule is nearest-value rounding, rather than always increasing or decreasing the magnitude. Keep the original inputs so you can see where rounding enters a calculation.
Availability and version history
- Introduced: The original introduction release and date are not established by the checked references.
- Availability: Documented in current ONLYOFFICE help and observed in Desktop Editors Community 10.0.0.169. This is not a final supported-version endpoint.
- Scope: Native observations cover Linux x64 only. Docs, mobile, earlier versions and other desktop platforms remain separately untested.
- Checked: October 14, 2026, against the official ROUND reference, pinned source and the explicitly identified native cases. Additional worked results were independently calculated.
Syntax and place values
ROUND(number, num_digits)
Both arguments appear in the official ROUND signature; no omitted-digit default is documented. Supply 2 for hundredths, 0 for units or -1 for tens in the exercises below. All digit counts here are integers.
The short reference says to round to the desired digits but does not give a signed midpoint table. The inspected official implementation scales the magnitude and applies a half-away-from-zero step, with floating-point normalization. That source revision is supporting evidence, not proof that every installed release uses identical code.
Reproduce the original three-item example
Create RoundedItems. Use A1:D6, with Item, Raw value, Two decimals and Multiplied then rounded in row 1. Enter these numeric inputs:
| Row | A: Item | B: Raw value |
|---|---|---|
| 2 | Tape | 12.346 |
| 3 | Pad | 4.994 |
| 4 | Box | 135.5 |
Enter =ROUND(B2,2) in C2 and fill through C4. Expect 12.35, 4.99, 135.5. The last result can display as 135.50 with a two-decimal number format; its numeric value is unchanged by that trailing zero.
In C6 enter =ROUND(B4,-1) for 140. In D3 enter =ROUND(B3*1.13,2) for 5.64: 4.994 × 1.13 = 5.64322 before rounding. These formulas use the original B inputs without replacing them.
Eight numeric cases were checked in ONLYOFFICE Desktop Editors Community 10.0.0.169 on Linux x64: the 12.346, 135.5 and multiplied-value examples above, plus the signed table below. Other worked results are independently calculated. Native observations do not establish Docs, mobile or other-version behavior.
Signed midpoint checks
On a separate SignedRounding sheet, enter Number, Digits and Result in A1:C1. Enter each A/B pair below and put =ROUND(A2,B2) in C2, filled through C7.
| Row | A: Number | B: Digits | C: checked desktop result |
|---|---|---|---|
| 2 | 12.346 | 2 | 12.35 |
| 3 | -12.346 | 2 | -12.35 |
| 4 | 2.5 | 0 | 3 |
| 5 | -2.5 | 0 | -3 |
| 6 | 2.675 | 2 | 2.68 |
| 7 | -2.675 | 2 | -2.68 |
The integer midpoint inputs distinguish an away-from-zero tie from a toward-positive-infinity tie. The decimal inputs also exercise representation-sensitive scaling. These six observations apply to the identified desktop build and inputs; they do not certify every decimal midpoint or precision limit.
Advanced: rounding lines versus rounding the total
Create LineTotals, with A1:D7. Put three unrounded amounts 0.044, 0.044, 0.044 in B2:B4, with item labels in A. Put =ROUND(B2,2) in C2 and fill through C4. Each independently calculated line is 0.04.
| Cell | Formula | Independently calculated result |
|---|---|---|
| B6 | =SUM(B2:B4) |
0.132 |
| C6 | =SUM(C2:C4) |
0.12 |
| D6 | =ROUND(B6,2) |
0.13 |
| D7 | =C6-D6 |
-0.01 |
Both totals follow their stated order of operations. Choose where rounding belongs in the actual reporting rule; adding decimal places to the display does not reconcile different calculation policies. This example is arithmetic instruction, not an accounting or tax prescription.
Reconstruct the vendor illustration
On VendorRound, enter 3.456 in A1 and 2 in A2. Put =ROUND(A1,A2) in C1. The official screenshot displays 3.46. This reproduces the vendor’s complete visible input grid, separate from the independently executed cases above.
Limits and troubleshooting
- Use ROUNDUP when magnitude must increase to a place, or ROUNDDOWN when the intended direction is toward zero. Negative values make those directions important.
- MROUND accepts an increment such as 0.25, not a decimal-place count. Two decimal places and multiples of two are different requests.
- Retain the raw inputs. Cell formatting can hide precision while leaving later arithmetic unchanged; ROUND explicitly changes the calculated value.
- Text, blanks, Boolean arguments, fractional digit counts, extreme magnitudes and every imported-workbook path were not tested. The short help does not establish a complete error/coercion matrix.
- Use the function-entry guide to check formula language and separators. The English examples here use commas; there was no localized runtime test.
When a total differs, inspect both the original values and the locations of ROUND calls. Compare formulas before changing displayed precision. SUM supplies the total in the worked example; it does not choose a rounding policy.