Skip to Content

DEC2BIN

Converts a decimal number to binary

Syntax

DEC2BIN(number, [places])

Parameters

  • number: Required. The decimal integer you want to convert
  • places: Optional. The number of characters to use

Example

=DEC2BIN(9, 4)
Returns: StringSince: Excel 2003