Documentation

BigNumberConverter
in package
implements NumberConverterInterface

Previously used to integrate moontoast/math as a bignum arithmetic library, BigNumberConverter is deprecated in favor of GenericNumberConverter

Tags
deprecated

Transition to GenericNumberConverter.

psalm-immutable

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

Methods

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
inheritDoc
psalm-pure
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
inheritDoc
psalm-pure
Return values
string

Hexadecimal string

Search results