← All docs

gmp_fact()

Computes a factorial.

gmp_fact()

function gmp_fact(object|string|int $num): object

Computes a factorial.

Parameters:

  • $num (object|string|int)

Returns: object

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how gmp_fact is implemented in the compiler, see the internals page.