ROMAN
Converts an arabic numeral to a roman numeral in the string format.
Syntax
expression.ROMAN(arg1, arg2);
expression
- A variable that represents a ApiWorksheetFunction class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
arg1 | Required | ApiRange | ApiName | number | A numeric value greater than or equal to 1 and less than 3999. | |
arg2 | Optional | ApiRange | ApiName | number | A roman numeral type: -0 - classic, -1 - more concise, -2 - more concise, -3 - more concise, -4 - simplified. |
Returns
string
Example
- Code
- Result
let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.ROMAN(1250, 4));