Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NativeCalculator.php

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\Calculator

Code

private readonly int $maxDigits;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal