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

Breadcrumb

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

function GmpCalculator::divQR

Overrides Calculator::divQR

File

vendor/brick/math/src/Internal/Calculator/GmpCalculator.php, line 43

Class

GmpCalculator
Calculator implementation built around the GMP library.

Namespace

Brick\Math\Internal\Calculator

Code

public function divQR(string $a, string $b) : array {
    [
        $q,
        $r,
    ] = \gmp_div_qr($a, $b);
    return [
        \gmp_strval($q),
        \gmp_strval($r),
    ];
}

API Navigation

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