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

Breadcrumb

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

function CalculatorInterface::divide

Returns the quotient of the provided parameters divided left-to-right

Parameters

int $roundingMode The RoundingMode constant to use for this operation:

int $scale The scale to use for this operation:

NumberInterface $dividend The integer to be divided:

NumberInterface ...$divisors The integers to divide $dividend by, in: the order in which the division operations should take place (left-to-right)

Return value

NumberInterface The quotient of dividing the provided parameters left-to-right

1 method overrides CalculatorInterface::divide()
BrickMathCalculator::divide in vendor/ramsey/uuid/src/Math/BrickMathCalculator.php
Returns the quotient of the provided parameters divided left-to-right

File

vendor/ramsey/uuid/src/Math/CalculatorInterface.php, line 70

Class

CalculatorInterface
A calculator performs arithmetic operations on numbers

Namespace

Ramsey\Uuid\Math

Code

public function divide(int $roundingMode, int $scale, NumberInterface $dividend, NumberInterface ...$divisors) : NumberInterface;

API Navigation

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