34667-vm/vendor/brick/math/src/Exception/RoundingNecessaryException.php
Flatlogic Bot 2e0e56a927 2
2025-10-05 18:08:48 +00:00

20 lines
459 B
PHP

<?php
declare(strict_types=1);
namespace Brick\Math\Exception;
/**
* Exception thrown when a number cannot be represented at the requested scale without rounding.
*/
final class RoundingNecessaryException extends MathException
{
/**
* @pure
*/
public static function roundingNecessary() : RoundingNecessaryException
{
return new self('Rounding is necessary to represent the result of the operation at this scale.');
}
}