ROMAN Function (Gnumeric)
Format integers as Roman numerals in Gnumeric with ROMAN, classical and simplified forms, zero and range checks.
Verification status: Fresh Gnumeric 1.12.57 source and bounded native engine checks; no GUI. How formula examples are checked
Exact syntax
=ROMAN(n[,type])
ROMAN converts a numeric value into Roman-numeral text. N is required. Type is optional, defaults to 0 and selects a form from 0 through 4. Type 0 is classical notation; higher types use progressively more concise rules, with type 4 the simplified form. The result is text intended for labels, not a numeric value for arithmetic.
The preserved example below returns XIV for 14. The classical representation of 999 is CMXCIX: CM represents 900, XC represents 90, and IX represents 9. The checked type-4 formula =ROMAN(999,4) returns IM. A shorter representation does not automatically make it the appropriate typographic convention for a document; choose the desired style explicitly.
Range, fractions and zero
The implementation floors n and the optional type before validating them. The tested positive fractional input =ROMAN(14.9) returns XIV. Use integer inputs when silent coercion would be undesirable. After conversion, n must be between 0 and 3999 inclusive, and type between 0 and 4. The fixtures ROMAN(4000), ROMAN(-1) and ROMAN(14,5) all return #VALUE!.
=ROMAN(0) returns an empty string. There is no displayed zero numeral in this convention, but the cell contains a formula result rather than being genuinely unused. Account for that distinction when exporting labels or counting nonempty fields.
Advanced application: chapter labels
For positive chapter numbers in A2:A20, use =ROMAN(A2,0) in B2 to create classical labels and keep the numeric column for sorting and calculations. Sorting Roman-numeral strings alphabetically does not in general preserve numeric order. If a number can exceed the function’s supported range, validate it before creating the label rather than silently substituting an unrelated numbering style.
The type parameter changes notation, not numeric meaning. Preserve the chosen type with a document template so that different rows do not mix classical and simplified forms by accident. Types 1 through 3 were inspected in the source but not separately exercised in this bounded native fixture; the examples certify the omitted/default form and type 4 only.
Worked example
=ROMAN(14)
Expected result: XIV.
Why it works: Display a number as a Roman numeral.
Recorded native results
=ROMAN(14)→ XIV=ROMAN(999)→ CMXCIX=ROMAN(999,4)→ IM=ROMAN(0)→ empty string=ROMAN(14.9)→ XIV=ROMAN(4000)→ #VALUE!=ROMAN(-1)→ #VALUE!=ROMAN(14,5)→ #VALUE!
Availability, portability and verification
Original introduction and last functioning release are not established. The retained historical check documented Gnumeric 1.12.62 registration on 14 October 2026, for desktop installations with the fn-math module included and enabled. This is separate from the fresh official 1.12.57 source inspection and bounded ssconvert execution on 17 October 2026. No execution of 1.12.62 is claimed.
Every saved input formula and output cell was independently read back; results match explicit code-point, table-lookup, Roman-notation or sorted-multiset expectations exactly. Source and native evidence hashes were verified. This is engine evidence, not GUI verification. The earlier comparable LibreOffice Calc 25.2 test is historical context; it does not establish identical coercion or extensions across programs. Check receiving applications and locales before transferring formulas.