convert a BigInt to an Hexadecimal
convert a BigInt to an Hexadecimal
The resulting hexadecimal will always be of size specified by digits. The conversion always truncates the theoretical representation, which could have the effect of changing a positive integer into a negative value.
Negative numbers are converted by taking the theoretical two complement representation, with an infinite number of 1s in front, and then we simply truncate for the correct length. It has the effect that it could change a negative number into a positive number in the corresponding length.
return a 32-bits hexadecimal integer
convert a digit byte to corresponding char
convert a digit byte to corresponding char
Only works for bytes between 0 and 16