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

Breadcrumb

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

function CalculatorInterface::fromBase

Converts a value from an arbitrary base to a base-10 integer value

Parameters

string $value The value to convert:

int $base The base to convert from (i.e., 2, 16, 32, etc.):

Return value

IntegerObject The base-10 integer value of the converted value

1 method overrides CalculatorInterface::fromBase()
BrickMathCalculator::fromBase in vendor/ramsey/uuid/src/Math/BrickMathCalculator.php
Converts a value from an arbitrary base to a base-10 integer value

File

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

Class

CalculatorInterface
A calculator performs arithmetic operations on numbers

Namespace

Ramsey\Uuid\Math

Code

public function fromBase(string $value, int $base) : IntegerObject;

API Navigation

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