Skip to content

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

private \Ramsey\Uuid\Converter\NumberConverterInterface $converter

Methods

__construct

public __construct(): mixed

fromHex

Converts a hexadecimal number into an string integer representation of the number

public fromHex(string $hex): string

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

public toHex(string $number): string

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