BigNumberConverter
Previously used to integrate moontoast/math as a bignum arithmetic library, BigNumberConverter is deprecated in favor of GenericNumberConverter
- Full name:
\Ramsey\Uuid\Converter\Number\BigNumberConverter
- Warning: this class is deprecated. This means that this class will likely be removed in a future version.
- This class implements:
\Ramsey\Uuid\Converter\NumberConverterInterface
Properties
converter
Methods
__construct
fromHex
Converts a hexadecimal number into an string integer representation of the number
Parameters:
Parameter | Type | Description |
---|---|---|
$hex |
string | The hexadecimal string representation to convert |
Return Value:
String representation of an integer
toHex
Converts a string integer representation into a hexadecimal string representation of the number
Parameters:
Parameter | Type | Description |
---|---|---|
$number |
string | A string integer representation to convert; this must be a numeric string to accommodate unsigned integers greater than PHP_INT_MAX. |
Return Value:
Hexadecimal string
Automatically generated on 2025-03-18