BigNumberConverter
in package
implements
NumberConverterInterface
Previously used to integrate moontoast/math as a bignum arithmetic library, BigNumberConverter is deprecated in favor of GenericNumberConverter
Tags
Interfaces, Classes, Traits and Enums
- NumberConverterInterface
- A number converter converts UUIDs from hexadecimal characters into representations of integers and vice versa
Table of Contents
- $converter : NumberConverterInterface
- __construct() : mixed
- fromHex() : string
- Converts a hexadecimal number into an string integer representation of the number
- toHex() : string
- Converts a string integer representation into a hexadecimal string representation of the number
Properties
$converter
private
NumberConverterInterface
$converter
Methods
__construct()
public
__construct() : mixed
Return values
mixed —fromHex()
Converts a hexadecimal number into an string integer representation of the number
public
fromHex(string $hex) : string
Parameters
- $hex : string
-
The hexadecimal string representation to convert
Tags
Return values
string —String representation of an integer
toHex()
Converts a string integer representation into a hexadecimal string representation of the number
public
toHex(string $number) : string
Parameters
- $number : string
-
A string integer representation to convert; this must be a numeric string to accommodate unsigned integers greater than PHP_INT_MAX.
Tags
Return values
string —Hexadecimal string