[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FN_I2BIN()
 Convert an integer to binary string
------------------------------------------------------------------------------
 Syntax
 
       fn_I2Bin( <nValue>, [ <nLen> ] ) -> cBinStr
 
 Arguments

      <nValue> is the integer to convert.  Only positive integers may
      be converted.

      <nLen> is the desired resultant string length.  If omitted, it
      defaults to the length required to represent <nValue>.  If <nLen>
      is larger than the length required to represent <nValue>, cBinStr
      is left-padded with CHR(0)'s to fill it out to the desired length.

 Returns

      A binary string representing the value passed.

 Description

      This function converts a decimal value to it binary equivalent,
      and is useful for doing a direct memory translation.

 Examples

      ? fn_I2Bin( 57007 )                                                       // "#."

      ? fn_I2Bin( 57007, 4 )                                            // "  #."


 Source: N:\SRC\MISC\FNBIN2I.PRG

 Author: Steve Larsen

See Also: fn_Bin2I() fn_PeekStr() fn_PokeStr()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson