IMath.DivD

Syntax

DivD(Value: Decimal; Divisor: Decimal): Decimal;

Parameters

Value. Dividend.

Divisor. Divisor.

Description

The DivD method returns an integer part of the quotient ion dividing of two decimal high-precision numbers.

Comments

To define numbers of the Decimal type in the array, it is necessary to write the "m" character after the value of each number. For example: 0.001m.

Value of the Divisor parameter cannot be equal to 0.

Example

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

Sub UserProc;
Var
    r: Decimal;
Begin
    r := Math.DivD(28.1m7m);
    Debug.WriteLine(r);
End Sub UserProc;

After executing the example the console window displays the integer part of the dividend equal to 4.

See also:

IMath