IMath.Fact

Syntax

Fact(Value: Integer): Double;

Parameters

Value. A number, for which factorial is calculated.

Description

The Fact method returns a number factorial.

Comments

The Value parameter value must belong to the [1;170] interval.

Example

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

Sub UserProc;
Var
    r: Double;
Begin
    r := Math.Fact(5);
    Debug.WriteLine(r);
End Sub UserProc;

After executing the example the console window displays the factorial number equal to 120.

See also:

IMath