MHB How Can I Easily Tackle Binary and Hexadecimal Problems?

  • Thread starter Thread starter Amathproblem22
  • Start date Start date
  • Tags Tags
    Binary hexadecimal
Click For Summary
SUMMARY

This discussion focuses on effective methods for converting between binary, hexadecimal, and decimal number systems. The user outlines specific techniques for binary to decimal conversion, decimal to binary conversion, binary to hexadecimal conversion, and hexadecimal to binary conversion. Key calculations include converting the binary number 10100101 to hexadecimal A6 and the hexadecimal number B4 to binary 10110100. The user emphasizes the importance of grouping binary digits and using repeated division for decimal to binary conversions.

PREREQUISITES
  • Understanding of binary, decimal, and hexadecimal number systems
  • Familiarity with binary arithmetic and conversions
  • Knowledge of grouping binary digits for hexadecimal conversion
  • Basic mathematical operations including addition and division
NEXT STEPS
  • Study binary to decimal conversion techniques in depth
  • Learn about hexadecimal to binary conversion methods
  • Explore the use of bitwise operations in programming
  • Research common applications of binary and hexadecimal in computer science
USEFUL FOR

Students, computer science enthusiasts, and professionals working in programming or data analysis who need to understand number system conversions for applications in computing and digital electronics.

Amathproblem22
Messages
12
Reaction score
0
I don't need help with a problem just help with easy ways of tackling the problems. Below are my current methods. (Hopefully, all is correct I was in a rush).

Binary to Decimal:
1286432168421
11110001

I already know $$128+64+32= 224$$ so then $$ 16+1=17$$, meaning $$224+17=241$$

Decimal to Binary:
$$79$$
1286432168421
01001111
So I do this by basically figuring what adds up to 79 or by figuring if the number can fit into any (hopefully that makes sense).

Binary to Hexadecimal:
84218421
10100101

I break it up into two sets of 8-4-2-1 and add up the 1's below it accordingly. $$10=A$$ in the first column, and $$5$$ in the scond column so $$A5$$

Hexadecimal to Binary:
$$B4$$

$$B=11,4=4$$ so I but ones in the columns above so it adds up to the desired numbers leaving me 10110100.

Hexadecimal to Decimal
Using B4 from above = 11, then times that by 16 which in this case is easy and = 176 then adding 4 = 180
 
Technology news on Phys.org
The simplest way to change decimal to binary repeated division by 2. 79/2= 39 with remainder 1. 39/2= 19 with remainder 1. 19/2= 9 with remainder 1. 9/2= 4 with remainder 1. 4/2= 2 with remainder 0, 2/2= 1 with remainder 0 1/2= 0 with remainder . So 79= 100111. Notice that "1"s and "0"s are the reverse of those calculations.

Binary to hexadecimal is easy because 16= 2^4 = 10000 in binary. Divide the binary number into groups of 4 digits: 10100101= 1010 0101. Yes, 1010 is 8+2= 10 which is represented by "A" in hexadecimal and 0101 is 4+ 2= 6. 10100101 in binary is A6 in hexadecimal.

To go from hexadecimal to binary is also easy- convert each hexadecimal "digit" to binary.

B= 8+ 3= 1011 and 4 is 0100 so B4 is 10110100.
For something more complicated, E423BF: E= 8+ 4+ 2= 1110. 4= 0100, 2= 0010, 3= 0011, B= 1011, and F is 1111 so E423BF is 111001000010001110111111 in base 2.
 
Country Boy said:
The simplest way to change decimal to binary repeated division by 2. 79/2= 39 with remainder 1. 39/2= 19 with remainder 1. 19/2= 9 with remainder 1. 9/2= 4 with remainder 1. 4/2= 2 with remainder 0, 2/2= 1 with remainder 0 1/2= 0 with remainder . So 79= 100111. Notice that "1"s and "0"s are the reverse of those calculations.

Binary to hexadecimal is easy because 16= 2^4 = 10000 in binary. Divide the binary number into groups of 4 digits: 10100101= 1010 0101. Yes, 1010 is 8+2= 10 which is represented by "A" in hexadecimal and 0101 is 4+ 2= 6. 10100101 in binary is A6 in hexadecimal.

To go from hexadecimal to binary is also easy- convert each hexadecimal "digit" to binary.

B= 8+ 3= 1011 and 4 is 0100 so B4 is 10110100.
For something more complicated, E423BF: E= 8+ 4+ 2= 1110. 4= 0100, 2= 0010, 3= 0011, B= 1011, and F is 1111 so E423BF is 111001000010001110111111 in base 2.
This is an easier version of what you were saying I guess halving by two and put a 1 if the number above is odd and a 0 if the number is 0.
01249193979
01001111

Assuming you added A6 wrong? and dropped a 1 off 100111? Or was I wrong lol
 
Except that I would never say "halving by 2" (what else can you halve by?) that is essentially what I said.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K
Replies
4
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K