Best-Tweaks

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Sunday, 31 December 2006

Hexidecimal, Decimal, and Binary #'s Explained

Posted on 23:19 by Unknown
In order to fully understand this, you must also understand same basic math such as addition, multiplication, squaring, and Order of Operations (PEMDAS {Parentheses, Exponents, Multiplication, Division, Addition, Subtraction}). You must also be familiar with the binary number system and have experience on how to work with them. In this tutorial, I'll explain what is Hexidecimal, Decimal, and Binary numbers and how to convert between them.

Note: This tutorial was typed by a member of a hacking forum named "weazy". All credits of this tutorial go to him and the forum in which he posted the following tutorial. I'm not going to lie and say that I posted it............here goes.....

I've decided to write about a topic that is fun and very useful and one that not many people have mastered. I'm going to explain binary, hexadecimal, and decimal number systems and how to convert between them.

Decimal number system:

The decimal number system is the number system we all know and love. Decimal is a base 10 system, meaning that each place value goes up by a power of ten. This also means that in each place there can only be the numbers 0-9. Once we go past 9 a "1" is placed in the next column to represent 1 * 10^1 and a 0 in the last column to represent 0 * 10^0. Here is a diagram of the place values up to 10,000,000 in a base 10 system:

|10,000,000|1,000,000|100,000|10,000|1,000|100|10| 1|

For example, the number 123,289 can also be represented as:

1 * 10^5 + 2 * 10^4 + 3 * 10^3 + 2 * 10^2 + 8 * 10^1 + 9 * 10^0

Binary number system:

The binary number system is a base 2 system, which means that all the place values are a power of 2. In a base 2 system there can only be a "1" or a "0" in any given place because once a number is more than 1 a "1" is placed in the next column to represent 1 * 2^1 and a "0" is placed in the last column to represent 0 * 2^0. Here is a diagram of the place values in the binary system up to 128:

128|64|32|16|8|4|2|1

For example, in binary, the number 101001 can also be represented as:

1 * 2^5 + 0 * 2^4 + 1 * 2^3 + 0 * 2^2 + 0 * 2^1 + 1 * 2^0


Hexadecimal number system:

The hexadecimal number is base 16. This means that all the place values in a hexadecimal number go up by a power of 16. In any place there can be the numbers 1-9 and also the letters A-F. In a hexadecimal number the letters A-F represent the numbers 10-15.
A=10 B=11 C=12 D=13 E=14 F=15

Here's a diagram of the place values in the hexadecimal up to 268,435,456:

268,435,456|16,777,216|1,048,576|65,536|4,096|256| 16|1

For example the number 45A in hexadecimal can also be represented as:

4 * 16^2 + 5 * 16^1 + 10 * 16^0


Converting between number systems:

To give an example of converting numbers between the decimal hexadecimal and binary number systems I'll convert a number from hexadecimal to binary and then to decimal.

Lets take the hexadecimal number 4D, which happens to be the ASCII code for the letter "M":

Converting binary numbers to hexadecimal and back is made to be easy; in fact hexadecimal is a shorthand way of writing binary numbers. Each digit in a hexadecimal number represents 4 binary digits or bits. In order to convert 4D into binary we can first separate the 4 and the D and say that they each represent a 4-bit number. The D represents 13. In order to convert that to a 4bit binary number we have to look back at our binary place diagram and see what combination of place values will add up to 13. These are 8 + 4 + 1. So...
D = 1101
The "4" is simply 4 which is 100 in binary, but because we said that each hexadecimal digit is equal to 4 bits we add a 0 to the front to make it a 4 bit number. So...
4 = 0100

Now all we have to do is put them together:

0100 1101 = 01001101
4 D

In order to convert the binary number 01001101 into a decimal number all we have to do is take each "1", multiply it by its place value, and add the results together:


128|64|32|16|8|4|2|1
0 1 0 0 1 1 0 1

64 + 8 + 4 + 1 = 77

SO... 4D hex = 01001101 bin = 77 dec

I hope I've left you utterly confused; confusion is one of the first steps to enlightenment. If not, I hope I've taught you something new or at least refreshed you on a very important concept in the world of computers.
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in Other-Tweaks | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Easy way to increase your Cable/DSL speed!!!
    Here is a simple way to boost your Cable/DSL speed, just copy the ENTIRE ITALIC text in the "quote" box to Notepad, then save the...
  • Increase Harddisk Speed In Xp2003!
    How can I increase my hard disk speed in Windows XP/2003? First Common method is Defragment.. dat is too common ..so v talk sumthng new..her...
  • Amazing Hidden Features in XP
    1. Application Secrets. Defrag Secret - Hidden Command Line Switch Instructions - Go to "Start", "Run" and Type defr...
  • xp 2000 commands
    New and improved! Here's a list of some new tools mixed up with the old favorites that will make any Linux user feel at home with the co...
  • Cool Browser Trick
    Paste this into your address bar. ( Works on IE ) For Circles: javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200...
  • Boot Your PC in STYLE
    Note : I recommend making a copy of you " Boot.ini " first, just in case you do something wrong and your window is not booting, r...
  • Give each hd its own icon.
    Give each hd its own icon. 1) Create a file called "Autorun.inf" in the root of the drive 2) Put this text in the file [autorun] I...
  • Changing your Mouse Pointer
    This is sort of a stupid, frivolous, useless little tip, but hey, who ...
  • Setting your Home Page
    These steps are pretty similar for most of the browsers out there, I...
  • Using Msconfig to shut off Auto-Start programs
    So you want to speed up your booting process, well here's a tip for you to shut off those programs that start in ...

Categories

  • Browser-Tweaks
  • Computer-Tweaks
  • Designing-Tweaks
  • Email Account Tricks
  • Games-Tweaks
  • Google-Tweaks
  • Internet-Tweaks
  • Mobile-Tweaks
  • Other-Tweaks
  • Security-Tweaks
  • Torrent Tweaks
  • WebMaster Tweaks
  • Windows Tweaks
  • Yahoo-Tweaks

Blog Archive

  • ►  2010 (1)
    • ►  June (1)
  • ►  2009 (12)
    • ►  September (5)
    • ►  August (1)
    • ►  July (2)
    • ►  May (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2007 (43)
    • ►  November (2)
    • ►  October (2)
    • ►  September (1)
    • ►  May (3)
    • ►  April (1)
    • ►  March (2)
    • ►  February (4)
    • ►  January (28)
  • ▼  2006 (55)
    • ▼  December (55)
      • Free audio and video stream broadcasting software
      • How-To: Stream almost anything using VLC
      • stream your quicktime media over the internet
      • stream your windows media over the internet
      • How to stream
      • Hexidecimal, Decimal, and Binary #'s Explained
      • How to make folders invisible!!
      • Secure Folder in XP NO tools Needed !
      • How To Trace The Spam Mail
      • Lightning Fast Browsing Trick For Internet Explore...
      • Security Tips and Tricks
      • Protecting your kids online with Web Filters
      • Setting your Home Page
      • Programs to Tweak you Windows Settings
      • The Great Browser Question - Which to use?
      • Formatting Your Hard Drive
      • Scandisk
      • System Restore (XP Only)
      • Disabling Windows XP Built In Firewall!
      • Creating Desktop Shortcuts and Folders
      • Defragging your Hard Drive
      • Making Win XP look like Classic Windows
      • Changing Screen Resolution
      • Using Msconfig to shut off Auto-Start programs
      • Getting Rid of Klez
      • How to Select Multiple files using the Ctrl Key
      • Alphabetizing your Start Menu
      • Moving The Taskbar
      • How to off / on the Autoplay CD Feature in Win XP
      • Changing your Mouse Pointer
      • Closing Error Reporting (Win XP)
      • On-screen Keyboard
      • Turning off the Hibernation (No sleeping for your ...
      • Backing up your Registry and Restoring it!
      • How To Speed Up Your PC
      • xp 2000 commands
      • Multicolor Siggy Tutorial [ADOBE]
      • Tutorial- how to make 3D Effects In PhotoShop
      • Set up a http server from your computer ..
      • MIRC_COMMANDS
      • Increase Harddisk Speed In Xp2003!
      • How to hide your drives
      • 101 Useful Run Commands
      • Changing your Port on YM for better voice connection.
      • 20 google secrets
      • 1 click shutdown button shortcut
      • Configure Firefox to get much higher speeds
      • 100 shortcuts 4 computer
      • Changing MAC Adress on WInXP and 2000
      • Faster shutdown
      • Faster windows xp boot!
      • Make ur shutdown timer
      • How to Clone a Hard Drive
      • Sending messages to all computers in da school!!
      • How to get into top 10 on Google.
Powered by Blogger.

About Me

Unknown
View my complete profile