Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DivisionByZeroException.php

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\Exception

Code

public static function modulusMustNotBeZero() : DivisionByZeroException {
    return new self('The modulus must not be zero.');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal