dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Binary Numbers

  1. #1
    Join Date
    Jul 2009
    Posts
    48

    Red face Binary Numbers

    Hello all,

    I have made a random number adder using binary, my question is how do i work out how many possible numbers there are in a something bit number, i know there's 16 in a 4 bit binary number. The code I'm using is java script.
    Last edited by monkee98; 09-02-2010 at 03:45 AM. Reason: Made a mistake

  2. #2
    Join Date
    Aug 2007
    Posts
    3,767
    2 to the power of the number of bits, because for each bit there is two possibilities, and by the Fundamental Principle of Counting, you multiply all the possibilities by each other.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles