function BigNumber::from
Overridden by subclasses to convert a BigNumber to an instance of the subclass.
@psalm-pure
Throws
MathException If the value cannot be converted.
1 call to BigNumber::from()
- BigNumber::of in vendor/
brick/ math/ src/ BigNumber.php - Creates a BigNumber of the given value.
3 methods override BigNumber::from()
- BigDecimal::from in vendor/
brick/ math/ src/ BigDecimal.php - @psalm-pure
- BigInteger::from in vendor/
brick/ math/ src/ BigInteger.php - @psalm-pure
- BigRational::from in vendor/
brick/ math/ src/ BigRational.php - @psalm-pure
File
-
vendor/
brick/ math/ src/ BigNumber.php, line 170
Class
- BigNumber
- Common interface for arbitrary-precision rational numbers.
Namespace
Brick\MathCode
protected static abstract function from(BigNumber $number) : static;