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