DEC2BIN(x,places)
x: integer (− 513 < x < 512)
places: number of digits
If places is given and x is non-negative, DEC2BIN pads the result with zeros to achieve exactly places digits. If this is not possible, DEC2BIN returns #NUM!
If places is given and x is negative, places is ignored.
If x < − 512 or x > 511, DEC2BIN returns #NUM!
This function is Excel compatible.
This function is OpenFormula compatible.