18 public static function mod($dividend, $divisor)
25 return $e->getMessage();
28 if (($dividend < 0.0) && ($divisor > 0.0)) {
29 return $divisor - fmod(abs($dividend), $divisor);
31 if (($dividend > 0.0) && ($divisor < 0.0)) {
32 return $divisor + fmod($dividend, abs($divisor));
35 return fmod($dividend, $divisor);
54 return $e->getMessage();
61 if (!
$x &&
$y < 0.0) {
91 if (is_numeric($arg)) {
92 if ($returnValue === null) {
103 if ($returnValue === null) {
124 public static function quotient($numerator, $denominator)
131 return $e->getMessage();
134 return (
int) ($numerator / $denominator);
static validateNumericNullBool($number)
Many functions accept null/false/true argument treated as 0/0/1.
static quotient($numerator, $denominator)
QUOTIENT.
static power($x, $y)
POWER.
static numberOrNan($result)
Return NAN or value depending on argument.
static validateNotZero($number)
Confirm number != 0.
static validateNumericNullSubstitution($number, $substitute)
Validate numeric, but allow substitute for null.
static product(... $args)
PRODUCT.
static flattenArray($array)
Convert a multi-dimensional array to a simple 1-dimensional array.
static mod($dividend, $divisor)
MOD.