Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/vendor/voku/.././brick/math/src/Exception
الملفات الموجودة في هذا الـ Path:
.
..
DivisionByZeroException.php
IntegerOverflowException.php
MathException.php
NegativeNumberException.php
NumberFormatException.php
RoundingNecessaryException.php

مشاهدة ملف: RoundingNecessaryException.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.');
    }
}