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>dfbin2num()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfBin2Num()
Converts a binary string into a decimal number
------------------------------------------------------------------------------
Syntax:

     dfBin2Num( <cBin> ) --> nValue

Parameters:

     <cBin>     Binary string, 16 characters long.

Returns:

     <nValue> Numeric value, ranging from 0 to 65535

Description:

     Converts a 8 characters long binary string into a decimal number

Example:

     ? dfBin2Num( "00000000" )   // Returns  0
     ? dfBin2Num( "00001010" )   // Returns 10
     ? dfBin2Num( "1111111111111111" )   // Returns 65535

See also:

     dfNum2Bin()

See Also: dfNum2Bin()

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