INT Function in ONLYOFFICE Spreadsheet Editor: Syntax, Examples and Limits
Return the greatest integer less than or equal to a number: the mathematical floor, including for negatives.
Verification status: Three numeric-reference floor 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
INT returns the greatest integer less than or equal to a number. For 12.341 it gives 12; for -12.341 it gives -13. The negative case is why INT is different from simply removing the decimal part.
Use it for interval labels or complete-unit counts when flooring matches your model. A negative measurement belongs to a lower interval; a negative stock quantity may instead need validation before any packing 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 INT reference, pinned source and the explicitly identified native cases. Additional worked results were independently calculated.
Syntax and negative values
=INT(number)
There is one required argument and no digits parameter. The official INT reference explicitly describes rounding a negative number to the first lower-or-equal integer. INT(-8.999) is therefore -9, whereas discarding the fractional part gives -8.
TRUNC is the related function for removing fractional places. Do not add its second argument to INT. ROUND answers a different question: rounding to a chosen precision rather than always flooring.
Complete signed-input worksheet
Create IntegerBins, using A1:D11. Put Number, Integer floor, Whole-part comparison and Fraction above floor in A1:D1. Enter the following numeric inputs in A2:A11. In B2 enter =INT(A2), C2 =TRUNC(A2), and D2 =ROUND(A2-B2,3). Fill B2:D2 through row 11.
| Row | A: number | Expected B | Expected C | Expected D |
|---|---|---|---|---|
| 2 | 12.341 | 12 | 12 | 0.341 |
| 3 | -12.341 | -13 | -12 | 0.659 |
| 4 | 1492.6 | 1492 | 1492 | 0.600 |
| 5 | -1492.6 | -1493 | -1492 | 0.400 |
| 6 | 8.999 | 8 | 8 | 0.999 |
| 7 | -8.999 | -9 | -8 | 0.001 |
| 8 | 0.125 | 0 | 0 | 0.125 |
| 9 | -0.125 | -1 | 0 | 0.875 |
| 10 | 0 | 0 | 0 | 0 |
| 11 | 15 | 15 | 15 | 0 |
The mathematical difference between a number and its floor is at least zero and less than one. D deliberately rounds that difference to three places for this dataset; it is not a general promise that every tiny residual survives the displayed precision. Keep the original values in A.
Three numeric-reference cases were checked in ONLYOFFICE Desktop Editors Community 10.0.0.169 on Linux x64: INT(12.341)=12, INT(-12.341)=-13 and INT(-0.125)=-1. Those exact observations support the signed floor examples; the other worksheet and advanced results are independently calculated.
To compare formatting with calculation, make a copy DisplayCheck and change only A2 to 12.300. INT still gives 12, TRUNC gives 12 and the difference is 0.300. Formatting A2 to zero decimal places would not change its stored input.
Advanced: ten-unit intervals on either side of zero
Create TenUnitBins, with headers Measurement, Bin index, Lower endpoint and Upper endpoint in A1:D1. Enter 47 and -47 in A2:A3, and put the positive width 10 in F1.
- B2:
=INT(A2/$F$1) - C2:
=B2*$F$1 - D2:
=C2+$F$1
Fill B2:D2 through row 3. The expected rows are 4,40,50 and -5,-50,-40. In this half-open convention, 47 belongs to [40,50), and -47 belongs to [-50,-40). The lower endpoint is included; the upper one belongs to the next bin.
On a copy BinEdges, replace A2:A3 with 40 and 50. The rows become 4,40,50 and 5,50,60. This control makes the boundary policy explicit. Width must be positive and expressed in the same unit as the measurement.
Complete days from a duration quantity
On HourBreakdown, use A1:D2 with headers Hours, Whole days, Remaining hours and Reconstructed hours. Enter 49.75 in A2, then B2 =INT(A2/24), C2 =A2-24*B2, and D2 =24*B2+C2.
The expected results are 2, 1.75 and 49.75. This treats A2 as a numeric quantity of hours, with 24 hours per day. It is not a calendar or time-zone calculation, and a date serial should not be substituted without deciding what its units mean.
Input checks and practical limits
- Use numeric cells; a number-looking text string is a different input type. Blank, Boolean and error-valued cases have not been tested here.
- An unexpected negative floor often reflects the intended rule: -0.125 floors to -1 rather than zero.
- If copied results repeat, inspect the changing A2/A3 references rather than an unintended fixed
$A$2. - Very large values, exact representational boundaries and localized formula parsing need their own checks. Formatting is not a numeric conversion.
Use MOD when you need a division remainder, or ABS when you need magnitude. Neither substitutes for an interval’s lower-bound rule.