BIN2HEX function
Summary
Converts a binary number to hexadecimal
Syntax
BIN2HEX(number, [places])
The BIN2HEX function syntax has the following arguments:
• Number Required. The binary number you want to convert. Number cannot contain more than 10 characters (10 bits). The most significant bit of number is the sign bit. The remaining 9 bits are magnitude bits. Negative numbers are represented using two's-complement notation.
• Places Optional. The number of characters to use. If places is omitted, BIN2HEX uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros).
• Number Required. The binary number you want to convert. Number cannot contain more than 10 characters (10 bits). The most significant bit of number is the sign bit. The remaining 9 bits are magnitude bits. Negative numbers are represented using two's-complement notation.
• Places Optional. The number of characters to use. If places is omitted, BIN2HEX uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros).
Example
=BIN2HEX(11111011, 4)
=BIN2HEX(1110)
=BIN2HEX(1111111111)
=BIN2HEX(1110)
=BIN2HEX(1111111111)