ROMAN Function (OpenOffice Calc)
Learn the ROMAN function in Apache OpenOffice Calc: Converts a number to a Roman numeral.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Availability and version history
- Introduced: Documented by Apache OpenOffice 4.1.16; original introduction not established.
- Availability: Supported in Apache OpenOffice 4.1.16, verified against its function registry. This identifies a supported release, not a final working version.
- Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
- Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.
ROMAN converts a number into Roman-numeral text. It supports a classic form and progressively simplified forms. The result is a string for labels or presentation, not a new numeric representation that ordinary arithmetic automatically understands. Keep the original numeric value for sorting and calculation.
Syntax and arguments
=ROMAN(number; mode)
=ROMAN(number)
Number is required; optional mode defaults to 0. The pinned source approximately floors both numeric arguments before checking them. Effective number must be 0 through 3999 and effective mode 0 through 4. Mode 0 is the classic form. Zero produces empty text rather than a Roman zero symbol. Ordinary fractional inputs are therefore not rejected merely for having decimals. Examples use English function names and semicolon argument separators.
Reproducible examples
| Formula | Expected result |
|---|---|
=ROMAN(14) |
"XIV" |
=ROMAN(0) |
"" |
=ROMAN(49) |
"XLIX" |
=ROMAN(2026) |
"MMXXVI" |
=ROMAN(3999) |
"MMMCMXCIX" |
=ROMAN(14.9) |
"XIV" |
The first formula preserves the original example and result. Its historical comparable LibreOffice 25.2 check was not an OpenOffice test. New values are independently checked reference expectations; no fresh native application or GUI result is claimed. Quoted results indicate text, including "" for zero-length text.
Practical worksheet: make section labels without replacing numbers
Enter section numbers 1, 4, 9 and 14 in A2:A5. In B2 enter =ROMAN(A2) and fill down. Results are I, IV, IX and XIV. In C2 enter =CONCATENATE("Section ";B2) and fill down to produce Section I, Section IV, Section IX and Section XIV.
Retain column A as the sort key. Alphabetical order of Roman-numeral strings is not numeric order: IX and V do not sort as the numbers 9 and 5 simply because both are Roman labels. The presentation column should remain derived from its numeric source.
Advanced applications
Compare all five forms. Put 499 in A2 and modes 0,1,2,3,4 in B2:B6. In C2 use =ROMAN($A$2;B2) and fill through C6. Source-checked results are CDXCIX, LDVLIV, XDIX, VDIV and ID. They represent the same input under different permitted simplifications. Pick one convention consistently; do not assume the shortest form is the most familiar to readers.
Check argument flooring. ROMAN(14.9) yields XIV after flooring to 14. ROMAN(499;4.9) uses mode 4 and yields ID. A field that must contain whole section numbers needs its own integer validation; a successful conversion does not prove the original input was integral.
Treat zero deliberately. ROMAN(0) gives zero-length text. A CONCATENATE formula can still leave a prefix such as Section followed by a space, so test for a positive valid number when a visible section label is required. Empty text is not a universal Roman-numeral notation for zero.
Errors, edge cases and troubleshooting
Effective values below 0 or at least 4000, and modes below 0 or at least 5, follow the illegal-argument path. For example, -0.2 floors to -1 and is invalid, whereas 3999.9 floors to 3999 and remains within the checked range. These are ordinary source-derived boundaries; no native extreme-number conversion test is claimed.
ROMAN is not a parser for Roman text and does not validate a label typed by another person. Its simplified modes can produce strings unfamiliar under a strict classic notation policy. Keep mode 0 when the intended convention is the usual classic representation and verify any external style requirements separately.
The output remains text even if it originated from a number. Do not use text sorting or string length as a substitute for numeric comparison. Numeric-looking text, empty references, locale-specific entry and matrix behavior are not broadly certified. Preserve the source number and selected mode, and apply output formatting as presentation rather than overwriting the underlying dataset.
Related functions
Documentation and verification
See the Apache OpenOffice ROMAN reference, 4.1.16 math help, core numeric predicates and aggregation, Roman conversion, and Analysis callbacks. The original core/help/Analysis snapshots were retrieved October 13, 2026 and re-read for this guide. Additional retained header evidence is identified separately in the batch records. First introduction and final functioning version remain unknown, separate from documented 4.1.16 support. Source rules and independent arithmetic are not native tests.