PHP 7.4.33
Preview: DivisionByZeroException.php Size: 874 B
/var/www/multi-event-cfp.bitkit.dk/httpdocs/vendor/brick/math/src/Exception/DivisionByZeroException.php
<?php

declare(strict_types=1);

namespace Brick\Math\Exception;

/**
 * Exception thrown when a division by zero occurs.
 */
class DivisionByZeroException extends MathException
{
    /**
     * @return DivisionByZeroException
     *
     * @psalm-pure
     */
    public static function divisionByZero() : DivisionByZeroException
    {
        return new self('Division by zero.');
    }

    /**
     * @return DivisionByZeroException
     *
     * @psalm-pure
     */
    public static function modulusMustNotBeZero() : DivisionByZeroException
    {
        return new self('The modulus must not be zero.');
    }

    /**
     * @return DivisionByZeroException
     *
     * @psalm-pure
     */
    public static function denominatorMustNotBeZero() : DivisionByZeroException
    {
        return new self('The denominator of a rational number cannot be zero.');
    }
}

Directory Contents

Dirs: 0 × Files: 6
Name Size Perms Modified Actions
874 B lrw-r--r-- 2021-08-15 20:50:18
Edit Download
612 B lrw-r--r-- 2021-08-15 20:50:18
Edit Download
268 B lrw-r--r-- 2021-08-15 20:50:18
Edit Download
248 B lrw-r--r-- 2021-08-15 20:50:18
Edit Download
799 B lrw-r--r-- 2021-08-15 20:50:18
Edit Download
508 B lrw-r--r-- 2021-08-15 20:50:18
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).