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

Breadcrumb

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

function BigRational::quotientAndRemainder

Returns the quotient and remainder of the division of the numerator by the denominator.

@psalm-return array{BigInteger, BigInteger}

Return value

BigInteger[]

File

vendor/brick/math/src/BigRational.php, line 183

Class

BigRational
An arbitrarily large rational number.

Namespace

Brick\Math

Code

public function quotientAndRemainder() : array {
    return $this->numerator
        ->quotientAndRemainder($this->denominator);
}

API Navigation

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