🚧 Did some stuff, don't remember exactly what

Signed-off-by: Luke Tainton <luke@tainton.uk>
This commit is contained in:
2020-08-04 21:20:57 +01:00
parent 417c73e8c9
commit 97111b371b
185 changed files with 21061 additions and 163 deletions

View File

@@ -0,0 +1,21 @@
<?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.');
}
}