FT Conversion

 FT_BYT2BIT()     Convert byte to string of 1's and 0's
 FT_BYT2HEX()     Convert byte to hexadecimal version of its binary value
 FT_D2E()         Convert decimal to scientific notation
 FT_DEC2BIN()     Convert decimal to binary
 FT_E2D()         Convert scientific notation string to a decimal
 FT_ESCCODE()     Convert Lotus style escape codes
 FT_HEX2DEC()     Convert a hex number to decimal
 FT_INVCLR()      Get the inverse of a color
 FT_NTOW()        Translate numeric value to words
 FT_SQZN()        Compress a numeric value into a character string
 FT_STOD()        Convert a date string to a Clipper date data type
 FT_UNSQZN()      Uncompress a numeric compressed by FT_SQZN()
 FT_XTOY()        Convert from any data type to any other data type
Advertisements

FT_DEC2BIN

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