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

Breadcrumb

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

function BcMathCalculator::divQR

Overrides Calculator::divQR

File

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

Class

BcMathCalculator
Calculator implementation built around the bcmath library.

Namespace

Brick\Math\Internal\Calculator

Code

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

API Navigation

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