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

Breadcrumb

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

function Calculator::get

Returns the Calculator instance to use.

If none has been explicitly set, the fastest available implementation will be returned.

@psalm-pure @psalm-suppress ImpureStaticProperty

1 call to Calculator::get()
BigDecimal::exactlyDividedBy in vendor/brick/math/src/BigDecimal.php
Returns the exact result of the division of this number by the given one.

File

vendor/brick/math/src/Internal/Calculator.php, line 60

Class

Calculator
Performs basic operations on arbitrary size integers.

Namespace

Brick\Math\Internal

Code

public static final function get() : Calculator {
    if (self::$instance === null) {
        
        /** @psalm-suppress ImpureMethodCall */
        self::$instance = self::detect();
    }
    return self::$instance;
}

API Navigation

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