Dec to bin

dec_to_bin is a function that takes a number as input and converts it to a vector representing the binary form of the number with the MSB to the right.

Syntax

 * BIN = dec_to_bin(DEC)

Argument descriptions

 * DEC: The number to be converted to a vector representing the binary form of DEC. This must be a non-negative integer.

Examples
Some basic examples of how dec_to_bin works.