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

Breadcrumb

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

function RoundingNecessaryException::roundingNecessary

@psalm-pure

1 call to RoundingNecessaryException::roundingNecessary()
Calculator::divRound in vendor/brick/math/src/Internal/Calculator.php
Performs a rounded division.

File

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

Class

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

Namespace

Brick\Math\Exception

Code

public static function roundingNecessary() : RoundingNecessaryException {
    return new self('Rounding is necessary to represent the result of the operation at this scale.');
}

API Navigation

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