Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>byte2bin() - convert byte value to 8 bit binary string</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     byte2bin() - convert byte value to 8 bit binary string
  Usage:    <string> = byte2bin(<integer>)
  Params:   an integer in the range of 0 - 255
  Returns:  a string filled with ones and zeros representing the
            the bit settings that form the binary equivalent of the
            integer sent

 ---------------------------------- Example ---------------------------------

                 ? byte2bin(255)
                 * prints "11111111"

                 ? byte2bin(38)
                 * prints "00100110"


See Also: num2bin() bin2num() hex2dec() dec2hex()

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