Syntax
=DEC2BIN(number, [places])Arguments
| Argument | Required | Description |
|---|---|---|
number | Required | The decimal integer to convert |
places | Optional | The number of characters to use (left out: as few as needed) |
How to use DEC2BIN
DEC2BIN takes 1 required argument and 1 optional argument. Type =DEC2BIN( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=DEC2BIN(9, 4)Result =DEC2BIN(-100)Result Related engineering functions
- BITRSHIFTReturns a number shifted right by a number of bits (divided by a power of 2, rounded down).
- BITXORReturns the bitwise exclusive OR of two numbers.
- COMPLEXBuilds a complex number as text from its real and imaginary parts.
- CONVERTConverts a number from one measurement unit to another, like feet to meters or Fahrenheit to Celsius.
- DEC2HEXConverts a decimal number to hexadecimal.
- DEC2OCTConverts a decimal number to octal.
- DELTAReturns 1 when two numbers are equal and 0 otherwise.
- ERFReturns the error function integrated between zero (or a lower limit) and an upper limit.
- ERF.PRECISEReturns the error function integrated between zero and a limit.