TX Sheet Control

DEC2BIN Function

Function

Convert a decimal number to a binary number. number is an integer from -512 to 511; decimals are truncated. A negative number returns ten binary 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

DEC2BIN(number, places)

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

Available for supported offline calculation.

Examples

=DEC2BIN(10)

The formula returns the text 1010.

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

See Also