IMath.Roman

Fore Syntax

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

Fore.NET 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].

Fore 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.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.MathFin;

Public Shared Sub Main(Params: StartParams);
Var
    r: String;
    Math: MathClass = New MathClass();
Begin
    r := Math.Roman(9,1);
    System.Diagnostics.Debug.WriteLine(r);
End Sub;

See also:

IMath