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\MathCode
public function toBase(IntegerObject $value, int $base) : string;