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

Breadcrumb

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

function CalculatorInterface::subtract

Returns the difference of all the provided parameters

Parameters

NumberInterface $minuend The integer being subtracted from:

NumberInterface ...$subtrahends The integers to subtract from the minuend:

Return value

NumberInterface The difference after subtracting all parameters

1 method overrides CalculatorInterface::subtract()
BrickMathCalculator::subtract in vendor/ramsey/uuid/src/Math/BrickMathCalculator.php
Returns the difference of all the provided parameters

File

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

Class

CalculatorInterface
A calculator performs arithmetic operations on numbers

Namespace

Ramsey\Uuid\Math

Code

public function subtract(NumberInterface $minuend, NumberInterface ...$subtrahends) : NumberInterface;

API Navigation

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