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

Breadcrumb

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

function CalculatorInterface::toBase

Converts a base-10 integer value to an arbitrary base

Parameters

IntegerObject $value The integer value to convert:

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

Return value

string The value represented in the specified base

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

File

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

Class

CalculatorInterface
A calculator performs arithmetic operations on numbers

Namespace

Ramsey\Uuid\Math

Code

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

API Navigation

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