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

Breadcrumb

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

function BcMathCalculator::add

Overrides Calculator::add

File

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

Class

BcMathCalculator
Calculator implementation built around the bcmath library.

Namespace

Brick\Math\Internal\Calculator

Code

public function add(string $a, string $b) : string {
    return \bcadd($a, $b, 0);
}

API Navigation

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