Documentation/Calc Functions/DEC2BIN

From The Document Foundation Wiki
Jump to: navigation, search


Im-jabber.svg

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


Function name:

DEC2BIN

Category:

Add-in

Summary:

The result is the binary number for the decimal number entered between -512 and 511.

Syntax:

DEC2BIN(Number; Places)

Returns:

Arguments:

Number is a decimal number. If Number is negative, the function returns a binary number with 10 characters. The most significant bit is the sign bit, the other 9 bits return the value.

Places means the number of places to be output.

Additional details:

Examples:

=DEC2BIN(100;8) returns 01100100.

Related LibreOffice functions:

ODF standard:

Equivalent Excel functions: