Quotient(Numerator: Double; Denomiator: Double): Integer;
Quotient(Numerator: double; Denomiator: double): integer;
Numerator. Dividend.
Denomiator. Divisor.
The Quotient method returns an integer part of the dividend on dividing two decimal numbers.
Value of the Denomiator parameter cannot be equal to 0.
To execute the example, add a link to the MathFin system assembly.
Sub UserProc;
Var
r: Integer;
Begin
r := Math.Quotient(4.5, 3.1);
Debug.WriteLine(r);
End Sub UserProc;
After executing the example the console window displays the integer part of the dividend equal to 1.
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: Integer;
Math: MathClass = New MathClass();
Begin
r := Math.Quotient(4.5, 3.1);
System.Diagnostics.Debug.WriteLine(r);
End Sub;
See also: