gmp_binomial

Calculates binomial coefficient

&reftitle.description; `GMP` `gmp_binomial` ``GMP``int``string```n` `int` `k`

Calculates the binomial coefficient C(n, k).

&reftitle.parameters;

`n`

- &gmp.parameter;

`k`

&reftitle.returnvalues;

Returns the binomial coefficient C(n, k).

&reftitle.errors;

Throws `ValueError` if `k` is negative. Prior to PHP 8.0.0, `E_WARNING` was issued instead.

&reftitle.changelog;

&Version; | &Description;
8.0.0 | This function no longer returns &false; on failure.