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