Thread Closed  Post Thread 

Counting in Binary
Author Message
nick
SEO Dictator

SEO Team

Posts: 1,177
Group: SEO Team
   
Cash: 432.01 Donate
Counting in Binary

It's easier than you think to count in binary. Remember that the usual system we use for counting, decimal, is a positional number system: the same digit can represent a different quantity depending on where it occurs in the number. The number 4, for instance, can mean just that, or it can signify four hundred (400), or four million (4,000,000). The zeroes themselves have no value - they just indicate how much the digit 4 is worth. There are 10 separate digits in the decimal system, so when you hit 9 you run out of digits and you add another digit on the left: this is the tens column where each digit is worth 10 times what it was in the units column.

201 decimal

201 / 2 = 2 * 100 + 1
100 / 2 = 2 * 50 + 0
50 / 2 = 2 * 25 + 0
25 / 2 = 2 * 12 + 1
12 / 2 = 2 * 6 + 0
6 / 2 = 2 * 3 + 0
3 / 2 = 2 * 1 + 1
1 / 2 = 2 * 0 + 1

11001001 binary

Binary is the same, except that you run out of digits a lot more quickly, but you put another digit in a new column to multiply it by two. So, the number one in binary is represented as 1. Two, however, is 10. Three is 11 and four is 100. Instead of each column representing units, tens, hundreds and thousands, you have units, two, fours, eights, 16s, 32s and so one-each new column multiples the entire number by two. The table on the next page makes it clearer.

You'll notice a number system called hexadecimal there too. Hexadecimal, hex for short, is a base 16 digits you can use before you have to go to the next column. Rather than inventing new symbols, hexadecimal notation just uses the digits zero to nine plus the first six letters of the alphabet, A to F. If you've probably come across hexadecimal already : colours are often defined with hex numbers. So why indulge in this perverse and unintuitive hex system? Well, because each extra digit in a binary number represents a power of two, computing is often concerned with powers of two. The standard unit of computer memory, for instance, is a byte. A byte consists of eight bits (23), in other words eight values that can be either one or zero. With eight bits, you can represent 256 different values (28). Because there are 16 digits in the hexadecimal system, two hex digits can represent all the possible values of a single byte-zero is 00, 255 is FF-keeping everything neat. So, when you specify a colour of #FF00FF in a web page, you're giving the web browser a three-byte, 24bit colour value: one byte for red (in this case FF), one for green (00) and one for blue (FF). This, incidentally, is the official web standard colour 'fuchsia'.


DNDaily.com - Your Daily Domain Doze
Twut.com - Free Online Games
Product reviews and ratings
Search Engine Optimization Packages
12-05-2006 01:58 PM
Send the author a private message Find all posts by this author Quote this message in a reply

Advertisements

This is an ad revenue sharing forum
jignesh
Moderator

Moderators

Posts: 365
Group: Moderators
   
Cash: 307.00 Donate
RE: Counting in Binary

nice info nick,i think u r from technical background.i had studied this things while i was in 2nd year of engg.you can give access permission throught decimal digit.i mean there are three permission read,write and execute for three persone owner,users and for all.so if u want to give all three permission for all than we write 777 means 111 111 111.it is very useful things to understand number system.


Technical Information | Technical World | Seo Services india | BizComSoft
01-16-2007 09:09 PM
Send the author an email Send the author a private message Find all posts by this author Quote this message in a reply
nick
SEO Dictator

SEO Team

Posts: 1,177
Group: SEO Team
   
Cash: 432.01 Donate
RE: Counting in Binary

If you master the numbers then it will give you an edge in programming.


DNDaily.com - Your Daily Domain Doze
Twut.com - Free Online Games
Product reviews and ratings
Search Engine Optimization Packages
01-16-2007 11:44 PM
Send the author a private message Find all posts by this author Quote this message in a reply
jignesh
Moderator

Moderators

Posts: 365
Group: Moderators
   
Cash: 307.00 Donate
RE: Counting in Binary

yes i m agree wd you.in programming you have to play wd logic and if your mathematics is good than u will be a master.hey nick may i know about your qualification if u dont mind.


Technical Information | Technical World | Seo Services india | BizComSoft

This post was last modified: 01-17-2007 12:02 AM by jignesh.

01-17-2007 12:02 AM
Send the author an email Send the author a private message Find all posts by this author Quote this message in a reply
nick
SEO Dictator

SEO Team

Posts: 1,177
Group: SEO Team
   
Cash: 432.01 Donate
RE: Counting in Binary

Computer things:

MCP in Early 2003
MCSD in End of 2003
Plus it can be said I play around with programming languages.


DNDaily.com - Your Daily Domain Doze
Twut.com - Free Online Games
Product reviews and ratings
Search Engine Optimization Packages
01-17-2007 12:25 AM
Send the author a private message Find all posts by this author Quote this message in a reply
jignesh
Moderator

Moderators

Posts: 365
Group: Moderators
   
Cash: 307.00 Donate
RE: Counting in Binary

Great yaar,i think it is very difficult to get sound knowledge of programming.great job,pm me some tips to get sound knowledge of programming.

thanks


Technical Information | Technical World | Seo Services india | BizComSoft
01-17-2007 12:29 AM
Send the author an email Send the author a private message Find all posts by this author Quote this message in a reply
nick
SEO Dictator

SEO Team

Posts: 1,177
Group: SEO Team
   
Cash: 432.01 Donate
RE: Counting in Binary

Will write it down and send you a PM.

But always be excited to find more and more, learn more and more.


DNDaily.com - Your Daily Domain Doze
Twut.com - Free Online Games
Product reviews and ratings
Search Engine Optimization Packages
01-17-2007 12:48 AM
Send the author a private message Find all posts by this author Quote this message in a reply

Thread Closed  Post Thread 


View a Printable Version | Send this Thread to a Friend | Subscribe to this Thread | Add Thread to Favorites
Rate This Thread:
Forum Jump: