IMath.Roman

Syntax

Roman(Value: Integer; Form: Integer): String;

Parameters

Value. An integer number that must be transformed.

Form. A number that sets required format of Roman number.

Description

The Roman method transforms an Arabic number to a Roman number in text format.

Comments

Value of the Value parameter must be in the range [1;3999].

Example

To execute the example, add a link to the MathFin system assembly.

Sub UserProc;
Var
    r: String;
Begin
    r := Math.Roman(9,1);
    Debug.WriteLine(r);
End Sub UserProc;

After executing the example the console window displays the transformation result.

See also:

IMath