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

Breadcrumb

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

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

Code

public static function denominatorMustNotBeZero() : DivisionByZeroException {
    return new self('The denominator of a rational number cannot be zero.');
}

API Navigation

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