| Unit: | SDL_math1 | | Class: | None | | Declaration: | function Factorial (argument: integer): extended; |
The function Factorial calculates the factorial of the parameter argument. Please note that, despite the inherent integer nature of the factorial, the function Factorial returns the result as an extended floating point number to allow for large arguments. The argument may take values between 0 and 1000, values outside of this interval raise an exception.
| Hint: |
The unit UnivConst offers the natural logarithms of the factorials between 0 and 1000 as an array of constants (uc_LnFactorial). |
|