back to Command Reference
[All Models]
Returns the factorial of argument.
FACT ( argument )
└──┬───┘
Numeric expression
A = FACT(10)
argument: Integer in the range of 0 <= argument <= 69
10 X = 5
20 Y = FACT X
30 PRINT X;"!="; Y
Assigns factorial of the value of variable X to variable Y and displays the result.