Phaser API Documentation

  Version: 

Member of: Phaser.Math

<static> Factorial(value)

Description:

Calculates the factorial of a given number for integer values greater than 0.

Parameters:

name type description
value number

A positive integer to calculate the factorial of.

Returns:
Description:

The factorial of the given number.

Type:
  • number
Examples:
Since: 3.0.0
Source: src/math/Factorial.js (Line 7)