DEC2BIN
The DEC2BIN function converts a decimal value in its binary format.
Syntax 1
function dec2bin (arg-1)
Syntax 2
$dec2bin (arg-1)
Arguments
arg-1 must be a numeric data item or literal.
Result
The function returns a string literal containing 0s and 1s that represents arg-1 in binary form.
Examples
Example - Display the binary representation of the number 15.
display function dec2bin(15).