|
|
|
|
Understanding Number Systems |
This is a somewhat technical subject, but it is one that will come in handy when you are working with computers, so stick with me through this article and you will understand number systems. I taught this subject to Army officers when I was on active duty many years ago, and I still remember it well. I was able to get it across to my students, and I can do the same for you if you will concentrate on it with me. I recommend that you work the problems to fully understand the subject.
The number system we are taught and with which we deal daily in our lives is decimal. The base of this number system is 10. We are taught early that the positional values for this number system are ones, tens, hundreds, thousands, etc. We are taught this by rote, but we are not taught the rule on how to calculate them. But that is easy. Number systems always start with the ones position. The positional value to the left of one will be one times the base of the number system or ten (1 X 10 = 10). The next positional value to the left will be that positional value times the base of the system or 100 (10 X 10 = 100). This is how the ones, ten, hundreds, thousands are calculated.
Each number system has one character multiplier values in it that range from zero to one less than the base of the number system. In decimal, the multipliers are 0 - 9.
When we look at the number 123, we just accept it as the decimal value, but in number system theory, it is the sum of all multipliers times the positional value for the multiplier. Follow this example:
3 X 1 = 3
2 X 10 = 20
1 X 100 = 100
Add up the numbers to the right of the equal signs (3 + 20 + 100) and you get 123.
You have heard that computers use binary. This is because in electrical circuits there is an on or on off value (two possible values). The base for binary is two (2). Follow the rule for multipliers that they will be from 0 to one less than the base of the system so the multipliers for binary are zero and one.
Follow the rule for determining the positional values for the system. Start at one and multiply it by the base (two) so the position to the left of the one position is two (1 X 2). The next position to the left is the two position times the base (2) or 4 (2 X 2). The next position to the left is the four position times two (4 X 2) or 8. Here are the first few positional values in binary:
256 - 128 - 64 - 32 - 16 - 8 - 4 - 2 - 1
Notice that each position is doubled the value to its right. This makes sense since the base is two and we are multiplying each positional value by two to get the value of the next position to the left.
Let’s look at this binary number.
10011
To convert this to decimal, we multiply the positional value by the multiplier.
1 X 1 = 1
1 X 2 = 2
0 X 4 = 0
0 X 8 = 0
1 X 16 = 16
Now add up the values to the right of the equal sign and we get 19 decimal for the binary number 10011.
What is the decimal value of 111 binary? If you got 7 decimal then you understand how binary works.
1 X 1 = 1
1 X 2 = 2
1 X 4 = 4
1 + 2 + 4 = 7
Convert one more binary number - 1000000. If you got 64 decimal, you are right.
A weakness of binary is that it takes so many positions to express a large value. To get around this, the hexadecimal base system was devised. This is the base 16. We abbreviate hexadecimal as "hex".
Since we said earlier that the multipliers for the system were zero to one less than the base of the system (16), how can we get one position multipliers when we only have 0 - 9 as numeric numbers? Well, we use the first six letters of the alphabet for the multipliers above nine. Here are the multipliers in hex.
0
1
2
3
4
5
6
7
8
9
A=10
B=11
C=12
D=13
E=14
F=15
OK, now stick with me and remember the rules for number systems. The positional values start with one and are determined by multiplying the base by the number to get each succeeding positional value from right to left.
The first positional value is one. The next one to the left is 16 (1 X 16). The next one to the left is 256 (16 X 16). The next one to the left of 256 is 4,096 (256 X 16). The next one to the left of 4,096 is 65,536 (4,096 X 16).
The first few positional values of hex are:
1,048,576 - 65,536 - 4,096 - 256 - 16 - 1
You can see that we can express a very large number in hex with fewer positions than we can in our standard decimal numbering system.
Let’s convert a few hex numbers to decimal. Convert hex 1F to decimal. Just follow the rule and multiply the positional value by the multiplier.
F (=15) X 1 = 15
1 X 16 = 16
Add 15 and 16 and the number 1F in hex is 31 in decimal.
Convert 2AB hex to decimal. Just follow the rule. Remember, multiply each positional value by its multiplier.
B (=11) X 1 = 11
A (=10) X 16 = 160
2 X 256 = 512
Add up the values to the right of the equal signs and you find that 2AB in hex is 683 in decimal.
Why learn hex? In some instances when you are writing HTML for web pages, hex numbers are used. A two position hex number will express a number from 0 (hex 00) to 255 (hex FF). Since zero is a number, this will give 256 total values.
Another reason that hex is used is that each four positions of a binary number can be expressed in one hex position so it is much easier to write a large number in hex than in binary.
Let’s look at the binary value 1111. If you use the rules, this will be 1+2+4+8 = 15. This can be written as "F" in hex. (the multiplier "F" in hex is equal to decimal 15.
Let’s convert another number in binary to hex. Start at the ones position and break the binary number into four position groups. Express each four position group as its hex value
Binary 1011 1100 1001 0111
Hex B C 9 7
To double check that the two are equal follow the rules and convert both number systems to decimal. If you came up with 48,279 you are right.
Octal was used in computers until the hexadecimal numbering system was invented and "hex" has largely replaced it, but you may still run into situations where the octal numbering system is still used. Just remember the rules from this article and you will have no problem understanding it.
Copyright 2006 John Howe, Inc. | | Author Info: John V. W. Howe is an entrepreneur, author, inventor, patent holder, husband, father, and grandfather. He has been involved in entrepreneurial activities for over 40 years. He founded www.boomer-ezine.com and www.retirement-jobs-online.com to help Boomers (baby boomers) become entrepreneurs when they retire. |
|
| 30 Most Recent
Articles : |
artistic girl model artistic girl model or muscle nude video or femdom bdsm femdom or gay escort services, 803972, compaq c714nr, 65986, algebra graph systems of inequalities, kkialz, beryllium bohr model, ovlycl, lewisto[ Read Article] aKICPGsQsh
Your site is very interesting and usefuls., naked man pictures, 72711, national lotto, cmzxe, naked pregnant women gall, %PPP, shemales xxx, kwrqgz, virgin male free porn, 854089, gilliam center columbia sc, 8[[, nelson county times va, 752, mandy saxo rapidshare, >:-[ Read Article] oRkHfYXCCTqplyzuoZu
comment2, Free Naked Women Picture
, 003, Free Nude Girl Pics
, 6124, Free Naked Girls Movies
, qqy, Free Horse Sex Vids, qorqc, Free Kama Sutra Videos, :((, Gay Black Men Gallery, esyqf, harcourt realestate southport, tyw, family nude beach photos, 5834, in[ Read Article] aeXsXSWL
Excellent site, added to favorites!, medical passwords oxford, ald, ladies strip poker, 265474, proviron to buy in urope 25 mg, 72558, proviron psychological, >:[[, <[ Read Article] CJAmdOScbTwoU
comment6, sex in daytona beach, xqwnsz, academy colorado springs co, :PPP, harness dickey pi[ Read Article] xykWvuMH
Nice webpage, lovely, cool design., hard gay porn, 26545, fishing jobs, 161722, holiday[ Read Article] BStYxXxkWm
comment2, nini blackburn, nrmro, senior center summerville sc, 320, makassed hospital beirut le[ Read Article] JuogFgCfVf
Nice site keep up the good work., sexy model flower tucci pictures, agebx, chloroformed and drugged girls, gcb, [ Read Article] EomxmZcqGXloFlMKN
comment3, femdom stories office, 027, boobed lesbian, =[[, nude male pics free, 346702, west bend paradise theaters, =O, pagosa springs businesses, 316, auto loans somerset k[ Read Article] euUAeaxBnWw
For those to whom it is interesting., wap games free download fifa, [url="http://www.google.ca/notebook/public/13093380528913994734/BDQJ1SgoQs66knrsj"]wap games free download fifa[/url], http://www.google.ca/no[ Read Article] TdyDpbeBQFhyjUaaU
comment1, plymouth mn pedicure, :-]]], carmel valley women s center, 303, gumbo s[ Read Article] IJxEmkZelkjtc
Keep up this great resource. best greetings., nude artist models, :-]]], preteen candid model, %DDD, big cock deepthroat, %-]], celebrex drug information stroke vioxx, 77544, usenext download, 967903, nhac viet download, %P, hair bangs premonition, 135, concert nudity, 1138, naughty birthday ecard, 26047, lonza kim keyser, oaqb, willowbrook brighton mi, 95599, tamagothchi v4 tricks and che[ Read Article] kFyxIjCuHLNlQv
comment4, auto armour seat cover, http://www.radioum.com.br/img/7/blog.php?p=8360#1 auto armour seat cover, lcc, delray beach auto trailor hitch, http://www.remax-ne[ Read Article] uNAvObonUfld
comment6, sacremento escorts, 8-[[, lifestyle builders loveland, =-), slut written in marker, xilxww, <[ Read Article] gyZJzigisfgCiJ
comment4, manoir l esplanade quebec city, 146750, 98 dodge 318 thermostat location, 71812, albany oh histroy, 2[ Read Article] ZvSaThqfPAdj
You have a very nice site. Other interesting resources, average size penis, :-), nude singles, dqi, World Top
Stories : |
Nanny describes saving child in Mumbai attackThe world knows her as the daring nanny who, clutching a 2-year-old boy, pushed past the havoc in a terrorized Mumbai house and risked her life to keep the toddler safe. But Sandra Samuel sees no heroism in her actions. "Even today, I am thinking I should have sent the baby and done something for the rabbi and his wife," who were killed in the attack, she tells CNN.<div class="feedflare">
<a href="http://rss.cnn.com/~f/rss/cnn_topstories?a=tPzqGHSY"><img src="http://feedproxy.google.com/~f/rss/cnn_topstories?d=41" border="0"></img></a> <a href="http://rss.cnn.com/~f/rss/cnn_topstories?a=AaZ3zoiS"><img src="http://feedproxy.google.com/~f/rss/cnn_topstories?d=50" border="0"></img></a> <a href="http://rss.cnn.com/~f/rss/cnn_topstories?a=pUQR4JTJ"><img src="http://feedproxy.google.com/~f/rss/cnn_topstories?i=pUQR4JTJ" border="0"></img></a> <a href="http://rss.cnn.com/~f/rss/cnn_topstories?a=L1oW0w2P"><img src="http://feedproxy.google.com/~f/rss/cnn_topstories?d=52" border="0"></img></a> <a href="http://rss.cnn.com/~f/rss/cnn_topstories?a=2CdVNkGQ"><img src="http://feedproxy.google.com/~f/rss/cnn_topstories?i=2CdVNkGQ" border="0"></img></a>
</div><img src="http://feedproxy.google.com/~r/rss/cnn_topstories/~4/Ar9-U8z0xh4" height="1" width="1"/>
|
|
|
|
|