downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

gmp_gcd> <gmp_divexact
Last updated: Fri, 06 Nov 2009

view this page in

gmp_fact

(PHP 4 >= 4.0.4, PHP 5)

gmp_factFactorial

Descrierea

resource gmp_fact ( mixed $a )

Calculates factorial (a!) of a .

Parametri

a

The factorial number.

Aceasta poate fi sau o resursă număr GMP, sau un şir de caractere numeric, dacă este posibilă convertirea acestuia într-un număr.

Valorile întroarse

O resursă număr GMP.

Exemple

Example #1 gmp_fact() example

<?php
$fact1 
gmp_fact(5); // 5 * 4 * 3 * 2 * 1
echo gmp_strval($fact1) . "\n";

$fact2 gmp_fact(50); // 50 * 49 * 48, ... etc
echo gmp_strval($fact2) . "\n";
?>

Exemplul de mai sus va afişa:

120
30414093201713378043612608166064768844377641568960512000000000000



add a note add a note User Contributed Notes
gmp_fact
There are no user contributed notes for this page.

gmp_gcd> <gmp_divexact
Last updated: Fri, 06 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites