dglux5_wiki:dataflow:dataflow_blocks_reference:math_operations:factorial

Factorial

Block Group: Math Operations
Icon:Factorial block icon

The Factorial block returns the single factorial of a number. The single factorial of n is equal to 1*2*3*…* n.

For information on using dataflow blocks, see Dataflow.

For accepted and excluded arguments of Math Operations blocks, see Math Operations.


The following property of the Factorial block can take input and give output.

  • input (number)

input specifies the number to find the factorial for.


The following property of the Factorial block can give output but cannot take input.

  • output (number)

output returns the factorial of the input.


The following are special cases for the Factorial block:

  • A negative input value causes 1 to be returned.
  • If the input value is not an integer, it is truncated.
  • The factorial of zero is one.
  • Error values, and text that cannot be resolved to a number, cause 1 to be returned.
  • An input value of 100000 or greater returns infinity.

The following image shows four examples of the Factorial block.

Factorial block examples


  • dglux5_wiki/dataflow/dataflow_blocks_reference/math_operations/factorial.txt
  • Last modified: 2026/10/22 13:25
  • by 127.0.0.1