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

Breadcrumb

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

function Calculator::pow

Exponentiates a number.

Parameters

string $a The base number.:

int $e The exponent, validated as an integer between 0 and MAX_POWER.:

Return value

string The power.

3 methods override Calculator::pow()
BcMathCalculator::pow in vendor/brick/math/src/Internal/Calculator/BcMathCalculator.php
Exponentiates a number.
GmpCalculator::pow in vendor/brick/math/src/Internal/Calculator/GmpCalculator.php
Exponentiates a number.
NativeCalculator::pow in vendor/brick/math/src/Internal/Calculator/NativeCalculator.php
Exponentiates a number.

File

vendor/brick/math/src/Internal/Calculator.php, line 214

Class

Calculator
Performs basic operations on arbitrary size integers.

Namespace

Brick\Math\Internal

Code

public abstract function pow(string $a, int $e) : string;

API Navigation

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