Function: intToHex
Utils.intToHex
▸ intToHex<Length
>(int
, len?
): HexString
<Length
>
Converts integer number to hex string.
Optionally provides '0x' prefix or padding
Type parameters
Name | Type |
---|---|
Length | extends number = number |
Parameters
Name | Type | Description |
---|---|---|
int | number | The positive integer to be converted |
len? | Length | The length of the non prefixed HexString |
Returns
HexString
<Length
>