
Computer Science Computer Science Forum 
 LinkBack  Thread Tools  Display Modes 
October 7th, 2007, 07:01 PM  #1 
Senior Member Joined: Apr 2007 Posts: 2,140 Thanks: 0  I need some help on binary, hexadecimal and decimal numbers!
Okay, I was taking a look at my computer science textbook today, and I already did took a look at the equations for how to use binary and hexadecimal. But, I'm kind of confused on some of these. 1. Convert the following decimal numbers into hexadecimal and binary numbers: 100; 4340; 2000 2. Convert the following binary numbers into hexadecimal numbers and decimal numbers: 1000011001; 100000000; 100111 3. Convert the following hexadecimal numbers into binary and decimal numbers: FEFA9; 93; 2000 Can anyone tell me how to approach all the answers to these problems? Please show how to arrive to the answers. Thanks, J. 
October 8th, 2007, 05:19 AM  #2  
Global Moderator Joined: Nov 2006 From: UTC 5 Posts: 16,046 Thanks: 938 Math Focus: Number theory, computational mathematics, combinatorics, FOM, symbolic logic, TCS, algorithms  Re: I need some help on binary, hexadecimal and decimal numb Quote:
1A7 = (0001)(1010)(0111) = 110100111 1111010 = (0111)(1010) = 7A To convert from decimal, divide by the base you convert to. The remainder becomes the rightmost digit; continue with the quotient until you have nothing left. 123 / 16 = 7 rm 11 Number so far: (11) = B 7 / 16 = 0 rm 7 Number so far: (7)(11) = 7B done. To convert to decimal, count the values at each place and multiply appropriately. Since binary only has 1s and 0s, just add the value of the position whenever you have 1s: 1010100 The last position is 1, the nexttolast is 2, and so on; in this example, the first position is 64. Here I label them vertically: 631 4268421 1010100 Since only 4, 16, and 64 are marked, I add 4 +16 + 64 = 84. With hexadecamal, the positions are 1, 16, 256, and so on. Just multiply at each step: 6AA = 6 * 256 + A * 16 + A = 6 * 256 + 10 * 16 + 10 = 1706.  
October 13th, 2007, 02:00 PM  #3 
Senior Member Joined: Apr 2007 Posts: 2,140 Thanks: 0 
Thanks for the help.


Tags 
binary, decimal, hexadecimal, numbers 
Search tags for this page 
Click on a term to search for related topics.

Thread Tools  
Display Modes  

Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
binary numbers  mhhojati  Number Theory  3  November 5th, 2013 10:04 PM 
Binary to hexadecimal  Igo  Computer Science  3  September 7th, 2012 03:58 AM 
Sum of decimal numbers  zolden  Number Theory  1  December 11th, 2008 08:14 PM 
decimal with subscript to binary conversion  tintincute  Applied Math  14  October 14th, 2008 06:22 AM 
Binary Numbers  johnny  Computer Science  6  October 18th, 2007 10:29 AM 