X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/realesbar-X/vendor/brick/math/src/Exception
home
/
gfecatvj
/
sites
/
realesbar-X
/
vendor
/
brick
/
math
/
src
/
Exception
/
📁
..
📄
DivisionByZeroException.php
(646 B)
📄
IntegerOverflowException.php
(612 B)
📄
MathException.php
(277 B)
📄
NegativeNumberException.php
(248 B)
📄
NumberFormatException.php
(799 B)
📄
RoundingNecessaryException.php
(508 B)
Editing: NumberFormatException.php
<?php declare(strict_types=1); namespace Brick\Math\Exception; /** * Exception thrown when attempting to create a number from a string with an invalid format. */ class NumberFormatException extends MathException { /** * @param string $char The failing character. * * @return NumberFormatException * * @psalm-pure */ public static function charNotInAlphabet(string $char) : self { $ord = \ord($char); if ($ord < 32 || $ord > 126) { $char = \strtoupper(\dechex($ord)); if ($ord < 10) { $char = '0' . $char; } } else { $char = '"' . $char . '"'; } return new self(sprintf('Char %s is not a valid character in the given alphabet.', $char)); } }
Upload File
Create Folder