The value to convert, which can be a string, number, bigint, or HexLike.
A Hex string representing the number.
This function returns the direct hexadecimal representation of the number, which may have an odd number of digits. For a full-byte representation (an even number of hex digits), consider using numToBytes, numLeToBytes, or numBeToBytes and then converting the resulting byte array to a hex string.
Converts a NumLike value into its hexadecimal string representation, prefixed with
0x
.