fact(
VALUE
)

The fact( function computes the factorial of a value.


Parameters

This function has one parameter:

value – is a numeric value. The value must be an integer between 1 and 170 (1, 2, 3, … 169, 170).


Description

The fact( function computes the factorial of a value. The value must be an integer. If it is not an integer, it will be truncated to the next lower integer value. A factorial is a value multiplied by the next lower value and the next lower etc. For example 4 factorial (written 4! by mathematicians) is the same as 4*3*2*1. Factorials get big in a hurry as the value increases. Panorama cannot calculate a factorial for a value larger than 170. Larger values cause a floating point overflow because the answer is too large!

fact(3) ☞ 6
fact(4) ☞ 24
fact(5) ☞ 120
fact(6) ☞ 720
fact(170) ☞ 7.2574e+306

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0