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

Breadcrumb

  1. Drupal Core 11.1.x

RoundingNecessaryException.php

Namespace

Brick\Math\Exception

File

vendor/brick/math/src/Exception/RoundingNecessaryException.php

View source
<?php

declare (strict_types=1);
namespace Brick\Math\Exception;


/**
 * Exception thrown when a number cannot be represented at the requested scale without rounding.
 */
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.');
    }

}

Classes

Title Deprecated Summary
RoundingNecessaryException Exception thrown when a number cannot be represented at the requested scale without rounding.

API Navigation

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