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

Breadcrumb

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

class RoundingNecessaryException

Exception thrown when a number cannot be represented at the requested scale without rounding.

Hierarchy

  • class \Brick\Math\Exception\MathException extends \Brick\Math\Exception\Exception
    • class \Brick\Math\Exception\RoundingNecessaryException extends \Brick\Math\Exception\MathException

Expanded class hierarchy of RoundingNecessaryException

3 files declare their use of RoundingNecessaryException
BigNumber.php in vendor/brick/math/src/BigNumber.php
BigRational.php in vendor/brick/math/src/BigRational.php
Calculator.php in vendor/brick/math/src/Internal/Calculator.php

File

vendor/brick/math/src/Exception/RoundingNecessaryException.php, line 10

Namespace

Brick\Math\Exception
View source
class RoundingNecessaryException extends MathException {
    
    /**
     * @psalm-pure
     */
    public static function roundingNecessary() : RoundingNecessaryException {
        return new self('Rounding is necessary to represent the result of the operation at this scale.');
    }

}

Members

Title Sort descending Modifiers Object type Summary
RoundingNecessaryException::roundingNecessary public static function @psalm-pure

API Navigation

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