Roman(Value: Integer; Form: Integer): String;
Roman(Value: integer; Form: integer): string;
Value. An integer number that must be transformed.
Form. A number that sets required format of Roman number.
The Roman method transforms an Arabic number to a Roman number in text format.
Value of the Value parameter must be in the range [1;3999].
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.
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: