function DivisionByZeroException::denominatorMustNotBeZero
@psalm-pure
2 calls to DivisionByZeroException::denominatorMustNotBeZero()
- BigNumber::_of in vendor/
brick/ math/ src/ BigNumber.php - @psalm-pure
- BigRational::__construct in vendor/
brick/ math/ src/ BigRational.php - Protected constructor. Use a factory method to obtain an instance.
File
-
vendor/
brick/ math/ src/ Exception/ DivisionByZeroException.php, line 31
Class
- DivisionByZeroException
- Exception thrown when a division by zero occurs.
Namespace
Brick\Math\ExceptionCode
public static function denominatorMustNotBeZero() : DivisionByZeroException {
return new self('The denominator of a rational number cannot be zero.');
}