function Calculator::divR
Returns the remainder of the division of two numbers.
Parameters
string $a The dividend.:
string $b The divisor, must not be zero.:
Return value
string The remainder.
2 calls to Calculator::divR()
- Calculator::gcd in vendor/
brick/ math/ src/ Internal/ Calculator.php - Returns the greatest common divisor of the two numbers.
- Calculator::mod in vendor/
brick/ math/ src/ Internal/ Calculator.php
3 methods override Calculator::divR()
- BcMathCalculator::divR in vendor/
brick/ math/ src/ Internal/ Calculator/ BcMathCalculator.php - Returns the remainder of the division of two numbers.
- GmpCalculator::divR in vendor/
brick/ math/ src/ Internal/ Calculator/ GmpCalculator.php - Returns the remainder of the division of two numbers.
- NativeCalculator::divR in vendor/
brick/ math/ src/ Internal/ Calculator/ NativeCalculator.php - Returns the remainder of the division of two numbers.
File
-
vendor/
brick/ math/ src/ Internal/ Calculator.php, line 194
Class
- Calculator
- Performs basic operations on arbitrary size integers.
Namespace
Brick\Math\InternalCode
public abstract function divR(string $a, string $b) : string;