function Calculator::divQR
Returns the quotient and remainder of the division of two numbers.
Parameters
string $a The dividend.:
string $b The divisor, must not be zero.:
Return value
array{string, string} An array containing the quotient and remainder.
3 calls to Calculator::divQR()
- Calculator::divRound in vendor/
brick/ math/ src/ Internal/ Calculator.php - Performs a rounded division.
- Calculator::toArbitraryBase in vendor/
brick/ math/ src/ Internal/ Calculator.php - Converts a non-negative number to an arbitrary base using a custom alphabet.
- Calculator::toBinary in vendor/
brick/ math/ src/ Internal/ Calculator.php - Converts a decimal number to a binary string.
3 methods override Calculator::divQR()
- BcMathCalculator::divQR in vendor/
brick/ math/ src/ Internal/ Calculator/ BcMathCalculator.php - Returns the quotient and remainder of the division of two numbers.
- GmpCalculator::divQR in vendor/
brick/ math/ src/ Internal/ Calculator/ GmpCalculator.php - Returns the quotient and remainder of the division of two numbers.
- NativeCalculator::divQR in vendor/
brick/ math/ src/ Internal/ Calculator/ NativeCalculator.php - Returns the quotient and remainder of the division of two numbers.
File
-
vendor/
brick/ math/ src/ Internal/ Calculator.php, line 204
Class
- Calculator
- Performs basic operations on arbitrary size integers.
Namespace
Brick\Math\InternalCode
public abstract function divQR(string $a, string $b) : array;