NativeCalculator::$maxDigits
The max number of digits the platform can natively add, subtract, multiply or divide without overflow. For multiplication, this represents the max sum of the lengths of both operands.
In addition, it is assumed that an extra digit can hold a carry (1) without overflowing. Example: 32-bit: max number 1,999,999,999 (9 digits + carry) 64-bit: max number 1,999,999,999,999,999,999 (18 digits + carry)
Type: maxDigits
File
-
vendor/
brick/ math/ src/ Internal/ Calculator/ NativeCalculator.php, line 26
Class
- NativeCalculator
- Calculator implementation using only native PHP code.
Namespace
Brick\Math\Internal\CalculatorCode
private readonly int $maxDigits;