Returns the factorial of a number, stopping at 1 or at the optional numberOfFactors.
Factorial(number{;numberOfFactors
})
number
- numeric expression or field containing a positive integer.
numberOfFactors
- any numeric expression or field containing a number that represents how many factors to include in the multiplication.
Parameters in braces { } are optional.
number
FileMaker Pro 7.0
This function is useful in statistics and combinatorics.
Where n = number
and i = numberOfFactors
:
Factorial(3)
returns 6, which = 3 * 2 * 1.
Factorial(10;3)
returns 720, which = 10 * 9 * 8.