Fact

From SCAR Divi Manual
Revision as of 13:36, 3 July 2011 by Freddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function Fact(i: Int64): Int64;

Availability

SCAR Divi 3.26 > Current

Aliases

  • Factorial (SCAR Divi 3.21 > Current)
  • Fract (SCAR Divi 3.00 > Current)

Description

Returns the factorial of the value given by i. The function does not work for values of i over 66, if the value of i is over 66 the function returns 0.

Example

begin
  WriteLn(Fact(10));
end.

Output:

3628800

See Also