跳到主要内容

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

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberA numeric value greater than or equal to 1 and less than 3999.
arg2OptionalApiRange | ApiName | numberA roman numeral type: -0 - classic, -1 - more concise, -2 - more concise, -3 - more concise, -4 - simplified.

Returns

string

Example

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.ROMAN(1250, 4));