Differences Between: [Versions 400 and 403]
(no description)
File Size: | 130 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Helpers:: (9 methods):
verySmallDenominator()
validateNumericNullBool()
validateNumericNullSubstitution()
validateNotNegative()
validatePositive()
validateNotZero()
returnSign()
getEven()
numberOrNan()
verySmallDenominator(float $numerator, float $denominator) X-Ref |
Many functions accept null/false/true argument treated as 0/0/1. return: float|string quotient or DIV0 if denominator is too small |
validateNumericNullBool($number) X-Ref |
Many functions accept null/false/true argument treated as 0/0/1. param: mixed $number return: float|int |
validateNumericNullSubstitution($number, $substitute) X-Ref |
Validate numeric, but allow substitute for null. param: mixed $number param: null|float|int $substitute return: float|int |
validateNotNegative($number, ?string $except = null) X-Ref |
Confirm number >= 0. param: float|int $number |
validatePositive($number, ?string $except = null) X-Ref |
Confirm number > 0. param: float|int $number |
validateNotZero($number) X-Ref |
Confirm number != 0. param: float|int $number |
returnSign(float $number) X-Ref |
No description |
getEven(float $number) X-Ref |
No description |
numberOrNan($result) X-Ref |
Return NAN or value depending on argument. param: float $result Number return: float|string |