mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-13 07:00:08 +01:00
20 lines
459 B
PHP
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.
|
||
|
*/
|
||
|
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.');
|
||
|
}
|
||
|
}
|