factorial(Variable) Function

Top 

Description

Computes the factorial expansion of the specified value. Before expansion the value is truncated to an integer.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

 

Function Signature

factorial(

Variable x)

 

 

Arguments

x


Description:

The value whose factorial expansion will be returned.

Valid Range:

0 ≤ x ≤ 170

 

 

 

Return Value

Type:

number

 

 

The factorial expansion of the specified value.

 

Syntax

myVariable1 = factorial(myVariable2);

 

 

See also

factorial