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\ExceptionCode
public static function roundingNecessary() : RoundingNecessaryException {
return new self('Rounding is necessary to represent the result of the operation at this scale.');
}