24 public static function fact($factVal)
30 return $e->getMessage();
33 $factLoop = floor($factVal);
34 if ($factVal > $factLoop) {
41 while ($factLoop > 1) {
42 $factorial *= $factLoop--;
66 return $e->getMessage();
69 $factLoop = floor($factVal);
71 while ($factLoop > 1) {
72 $factorial *= $factLoop;
100 $divisor *= self::fact($arg);
103 return $e->getMessage();
106 $summer = self::fact($summer);
108 return $summer / $divisor;
static validateNumericNullBool($number)
Many functions accept null/false/true argument treated as 0/0/1.
static validateNumericNullSubstitution($number, $substitute)
Validate numeric, but allow substitute for null.
static flattenArray($array)
Convert a multi-dimensional array to a simple 1-dimensional array.
const COMPATIBILITY_GNUMERIC
static factDouble($factVal)
FACTDOUBLE.
static gammaValue(float $value)
static fact($factVal)
FACT.
static validateNotNegative($number, ?string $except=null)
Confirm number >= 0.
static multinomial(... $args)
MULTINOMIAL.
static getCompatibilityMode()
Return the current Compatibility Mode.