Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfnum2bin()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfNum2Bin()
Converts a number into a binary string
------------------------------------------------------------------------------
Syntax:

     dfNum2Bin( <nValue> ) --> cBin

Parameters:

     <nValue>   Numeric value, between 0 and 255

Returns:

     <cBin> Eight character binary string.

Description:

     Converts a decimal number into a eight character binary string

Example:

     ? dfNum2Bin( 0 )    // Returns "00000000"
     ? dfNum2Bin( 10 )   // Returns "00001010"

See also:

     dfBin2Num()

See Also: dfBin2Num()

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