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

Breadcrumb

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

function NativeCalculator::__construct

@codeCoverageIgnore

File

vendor/brick/math/src/Internal/Calculator/NativeCalculator.php, line 31

Class

NativeCalculator
Calculator implementation using only native PHP code.

Namespace

Brick\Math\Internal\Calculator

Code

public function __construct() {
    $this->maxDigits = match (PHP_INT_SIZE) {    4 => 9,
        8 => 18,
        default => throw new \RuntimeException('The platform is not 32-bit or 64-bit as expected.'),
    
    };
}

API Navigation

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