function DivisionByZeroException::modulusMustNotBeZero
@psalm-pure
3 calls to DivisionByZeroException::modulusMustNotBeZero()
- BigInteger::mod in vendor/
brick/ math/ src/ BigInteger.php - Returns the modulo of this number and the given one.
- BigInteger::modInverse in vendor/
brick/ math/ src/ BigInteger.php - Returns the modular multiplicative inverse of this BigInteger modulo $m.
- BigInteger::modPow in vendor/
brick/ math/ src/ BigInteger.php - Returns this number raised into power with modulo.
File
-
vendor/
brick/ math/ src/ Exception/ DivisionByZeroException.php, line 23
Class
- DivisionByZeroException
- Exception thrown when a division by zero occurs.
Namespace
Brick\Math\ExceptionCode
public static function modulusMustNotBeZero() : DivisionByZeroException {
return new self('The modulus must not be zero.');
}