function BigNumber::newBigRational
Proxy method to access BigRational's protected constructor from sibling classes.
@internal @psalm-pure
2 calls to BigNumber::newBigRational()
- BigDecimal::toBigRational in vendor/
brick/ math/ src/ BigDecimal.php - Converts this number to a BigRational.
- BigInteger::toBigRational in vendor/
brick/ math/ src/ BigInteger.php - Converts this number to a BigRational.
File
-
vendor/
brick/ math/ src/ BigNumber.php, line 200
Class
- BigNumber
- Common interface for arbitrary-precision rational numbers.
Namespace
Brick\MathCode
protected final function newBigRational(BigInteger $numerator, BigInteger $denominator, bool $checkDenominator) : BigRational {
return new BigRational($numerator, $denominator, $checkDenominator);
}