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

Breadcrumb

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

function BcMathCalculator::modPow

Overrides Calculator::modPow

File

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

Class

BcMathCalculator
Calculator implementation built around the bcmath library.

Namespace

Brick\Math\Internal\Calculator

Code

public function modPow(string $base, string $exp, string $mod) : string {
    return \bcpowmod($base, $exp, $mod, 0);
}

API Navigation

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