Skip to main content

DEC2BIN

Converts a decimal number to binary.

CategoryEngineering
SyntaxDEC2BIN(number, [places])

Parameters

ParameterRequiredDescription
numberRequiredThe decimal integer to convert (must be between -512 and 511).
placesOptionalThe number of characters to use. Pads with leading zeros if necessary.

Example

DEC2BIN(number, places)

Auto-generated from the EngCanvas function registry.