JCL Help:Factorial

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the factorial of the argument.


Pascal

 function Factorial(const N: Integer): Float;


Parameters

Parameters Description
X The value whose factorial to calculate. N must be smaller than 14.


Return Value

Factorial of N.


Description

Factorial returns the factorial of N. Factorial is defined as the product of 1..N, or 1 * 2 * 3 ... N. This value grows very rapidly; to avoid an overflow N must be smaller than 14.


About

Unit

JclMath


Donator

Clayton Collie


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page