function Calculator::add
Adds two numbers.
5 calls to Calculator::add()
- Calculator::divRound in vendor/
brick/ math/ src/ Internal/ Calculator.php - Performs a rounded division.
- Calculator::fromArbitraryBase in vendor/
brick/ math/ src/ Internal/ Calculator.php - Converts a non-negative number in an arbitrary base using a custom alphabet, to base 10.
- Calculator::mod in vendor/
brick/ math/ src/ Internal/ Calculator.php - Calculator::modInverse in vendor/
brick/ math/ src/ Internal/ Calculator.php - Returns the modular multiplicative inverse of $x modulo $m.
- Calculator::toDecimal in vendor/
brick/ math/ src/ Internal/ Calculator.php - Returns the positive decimal representation of a binary number.
3 methods override Calculator::add()
- BcMathCalculator::add in vendor/
brick/ math/ src/ Internal/ Calculator/ BcMathCalculator.php - Adds two numbers.
- GmpCalculator::add in vendor/
brick/ math/ src/ Internal/ Calculator/ GmpCalculator.php - Adds two numbers.
- NativeCalculator::add in vendor/
brick/ math/ src/ Internal/ Calculator/ NativeCalculator.php - Adds two numbers.
File
-
vendor/
brick/ math/ src/ Internal/ Calculator.php, line 164
Class
- Calculator
- Performs basic operations on arbitrary size integers.
Namespace
Brick\Math\InternalCode
public abstract function add(string $a, string $b) : string;