TRY NEW VERSION

ROMAN

ROMAN(arg1, arg2) → { number | string | boolean }

Converts an Arabic numeral to Roman, as text.

Parameters:

Name Type Description
arg1 number

Is the Arabic numeral you want to convert.

arg2 number

Is the number specifying the type of Roman numeral you want..

Returns:

Type
number | string | boolean

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.ROMAN(1250, 4));
builder.SaveFile("xlsx", "ROMAN.xlsx");
builder.CloseFile();

Resulting document