![]() | DEC2HEX function |
Converts a decimal number to hexadecimal.
Syntax
DEC2HEX(number,places)
Argument | Description | Remarks |
|---|---|---|
number | The decimal integer you want to convert. If number is negative, places is ignored and this function returns a 10-character (40-bit) hexadecimal number in which the most significant bit is the sign bit. The remaining 39 bits are magnitude bits. Negative numbers are represented using two's-complement notation. |
|
places | The number of characters to use. The places argument is useful for padding the return value with leading 0s (zeros). |
|
Example
To make the following example easier to understand, you can copy the data to a blank sheet and then enter the function underneath the data. Do not select the row or column headings (1, 2, 3... A, B, C...) when you copy the sample data to a blank sheet.
|
|






