gmp_fact

PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
gmp_fact - Factorial
Manual
Code Examples

gmp_fact( GMP|int|string$num ): GMP

Calculates factorial (num!) of num.

Parameters

num

The factorial number.

A GMP object, an int or a numeric string.

Return Values

A GMP object.

Example of gmp_fact

Show all examples for gmp_fact

PHP Version: