Documentation/Calc Functions/DEC2HEX

From The Document Foundation Wiki
Jump to: navigation, search


Im-jabber.svg

Under construction.
For now, see the system Help files.


Function name:

DEC2HEX

Category:

Add-in

Summary:

The result is the hexadecimal number for the decimal number entered.

Syntax:

DEC2HEX(Number; Places)

Returns:

Arguments:

Number is a decimal number. If Number is negative, the function returns a hexadecimal number with 10 characters (40 bits). The most significant bit is the sign bit, the other 39 bits return the value.

Places means the number of places to be output.

Additional details:

Examples:

=DEC2HEX(100;4) returns 0064.

Related LibreOffice functions:

ODF standard:

Equivalent Excel functions: