FT_DEC2BIN()
Convert decimal to binary
──────────────────────────────────────────────────────────────────────────────

Syntax

FT_DEC2BIN( <nNum> ) -> cBinaryNumber

Arguments

<nNum> is the numeric expression to be converted.

Returns

A character string representing <nNum> in binary format.

Description

This function can be used in conjunction with any bit-wise
operations.

Examples

QOut( FT_DEC2BIN(255) ) // "11111111"
QOut( FT_DEC2BIN(2) ) // "00000010"

Source: DECTOBIN.PRG

Author: Greg Lief