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

Breadcrumb

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

function Calculator::divR

Returns the remainder of the division of two numbers.

Parameters

string $a The dividend.:

string $b The divisor, must not be zero.:

Return value

string The remainder.

2 calls to Calculator::divR()
Calculator::gcd in vendor/brick/math/src/Internal/Calculator.php
Returns the greatest common divisor of the two numbers.
Calculator::mod in vendor/brick/math/src/Internal/Calculator.php
3 methods override Calculator::divR()
BcMathCalculator::divR in vendor/brick/math/src/Internal/Calculator/BcMathCalculator.php
Returns the remainder of the division of two numbers.
GmpCalculator::divR in vendor/brick/math/src/Internal/Calculator/GmpCalculator.php
Returns the remainder of the division of two numbers.
NativeCalculator::divR in vendor/brick/math/src/Internal/Calculator/NativeCalculator.php
Returns the remainder of the division of two numbers.

File

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

Class

Calculator
Performs basic operations on arbitrary size integers.

Namespace

Brick\Math\Internal

Code

public abstract function divR(string $a, string $b) : string;

API Navigation

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