Mod_(Value: Double; Divisor: Double): Double;
Mod_(Value: double; Divisor: double): double;
Value. Dividend.
Divisor. Divisor.
The Mod_ method returns the remainder from dividing of two decimal numbers.
Values of input parameters cannot be empty.
Value of the Divisor parameter cannot be equal to 0.
To execute the example, add a link to the MathFin system assembly.
Sub UserProc;
Var
r: Double;
Begin
r := Math.Mod_(83, 2.6);
Debug.WriteLine(r);
End Sub UserProc;
After executing the example the console window displays the dividend equal to 2.4.
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: double;
Math: MathClass = New MathClass();
Begin
r := Math.Mod_(83, 2.6);
System.Diagnostics.Debug.WriteLine(r);
End Sub;
See also: