function Calculator::and
Calculates bitwise AND of two numbers.
This method can be overridden by the concrete implementation if the underlying library has built-in support for bitwise operations.
1 method overrides Calculator::and()
- GmpCalculator::and in vendor/
brick/ math/ src/ Internal/ Calculator/ GmpCalculator.php - Calculates bitwise AND of two numbers.
File
-
vendor/
brick/ math/ src/ Internal/ Calculator.php, line 519
Class
- Calculator
- Performs basic operations on arbitrary size integers.
Namespace
Brick\Math\InternalCode
public function and(string $a, string $b) : string {
return $this->bitwise('and', $a, $b);
}