Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GT_LIB v1.0 Reference Guide Release 1.0 - <b>turns a decimal number into a binary string</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Turns a Decimal number into a binary string
------------------------------------------------------------------------------

 Syntax

        GT_DtoBin( <n> ) --> <cBinary>

 Arguments:

      <n>  is any decimal integer

 Returns:

      <cBinary> is a string representing a binary number

 Description:

      This function turns a decimal integer into a binary string.
      This can be used for encryption, bit twiddling,
      bit stripping etc.

 Examples:

      ? GT_DtoBin(255)     // '11111111'
      ? GT_DtoBin(15)      // '00001111'

 Header File: gt_lib.ch

 Source: GTMATH02.PRG

 Author:  Philip Ide

See Also: GT_BTOD() GT_BINARY()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson