qc.Math.factorial

Prototype

  • number factorial(val)

Paramters

Paramter Type Description
val number
return number

Description

Calculates a factorial value .

Example

    // return 1 * 2 * 3 = 6
    var ret = game.math.factorial(3);