function BigNumber::toBigDecimal
Converts this number to a BigDecimal.
Throws
RoundingNecessaryException If this number cannot be converted to a BigDecimal without rounding.
3 methods override BigNumber::toBigDecimal()
- BigDecimal::toBigDecimal in vendor/
brick/ math/ src/ BigDecimal.php - Converts this number to a BigDecimal.
- BigInteger::toBigDecimal in vendor/
brick/ math/ src/ BigInteger.php - Converts this number to a BigDecimal.
- BigRational::toBigDecimal in vendor/
brick/ math/ src/ BigRational.php - Converts this number to a BigDecimal.
File
-
vendor/
brick/ math/ src/ BigNumber.php, line 458
Class
- BigNumber
- Common interface for arbitrary-precision rational numbers.
Namespace
Brick\MathCode
public abstract function toBigDecimal() : BigDecimal;