TX Sheet Control

DEC2HEX Function

Function

Convert a decimal number to a hexadecimal number. number is an integer from -549,755,813,888 to 549,755,813,887; decimals are truncated. A negative number returns ten hexadecimal digits in two's-complement notation. places pads the result with leading zeros to that number of characters. A number out of range or too few places returns #NUM!, and text that is not a number returns #VALUE!.

Syntax

DEC2HEX(number, places)

Category: Engineering. Minimum arguments: 1. Maximum arguments: 2.

Available for supported offline calculation.

Examples

=DEC2HEX(10)

The formula returns the text A.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also