Home › Functions › Engineering › DEC2BIN
fx
DEC2BIN
Engineering  ·  Since: Excel 2003  ·  9 languages

Converts a decimal number to binary.

🌐 Translations

English DEC2BIN
Deutsch DEZINBIN
Français DECBIN
Español DEC.A.BIN
Italiano DECIMALE.BINARIO
Português DECABIN
Nederlands DEC.N.BIN
Polski DZIES.NA.DWÓJK
Русский ДЕС.В.ДВ

📦 Availability

Excel versionAvailable
Excel 2007 ✓
Excel 2013 ✓
Excel 2019 ✓
Excel 2021 ✓
Microsoft 365 ✓
Translate a formula with this function
fx EN
fx DE

⌨ Syntax

DEC2BIN(number,[places])

Arguments

number (required) — The decimal integer you want to convert. If number is negative, valid place values are ignored and DEC2BIN returns a 10-character (10-bit) binary number in which the most significant bit is the sign bit. The remaining 9 bits are magnitude bits. Negative numbers are represented using two's-complement notation.
places (optional) — The number of characters to use. If places is omitted, DEC2BIN uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros).

▶ Examples

=DEC2BIN(9,4)
=DEC2BIN(-100)

Related functions

Copied to clipboard