Home > PHP > Function > GMP > gmp_fact()

gmp_fact()

gmp_fact - Factorial

Syntax

resource gmp_fact (mixed $a)

Arguments

  • a - The factorial number. It can be either a GMP number resource, or a numeric string given that it is possible to convert the latter to a number.

Description

Calculates factorial ( a!) of a.

Version

PHP 4.0.4, 5

Return value

A GMP number resource.