Files
arif_grafin/pma/vendor/brick/math/src/Exception/RoundingNecessaryException.php
dev@siliconpin.com a3067c5ad4 first commit
2025-08-07 11:53:41 +05:30

22 lines
508 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.
*/
class RoundingNecessaryException extends MathException
{
/**
* @return RoundingNecessaryException
*
* @psalm-pure
*/
public static function roundingNecessary() : RoundingNecessaryException
{
return new self('Rounding is necessary to represent the result of the operation at this scale.');
}
}