• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Binary to Hex = HOW?

Nocturnal

Lifer
Please HELP ME!!!!!!!!!!!

Nobody is online at this moment via AIM so I can't bother notfred. How do I convert a set of four binary numbers into a hex number?

I know you usually group the binary number up into four numbers such as 1001 1011, etc etc. How do I convert them?
 
convert them to base 10 and then go to hex? that is what i would do, but i'm not too good at the converting thing.
 
Originally posted by: pillage2001
0000=0
0001=1
0010=2
0011=3
0100=4
0101=5
0110=6
0111=7
1000=8
1001=9
1010=A
1011=B
1100=C
1101=D
1110=E
1111=F

It would help if you told me or explained to me how you went about getting that conversion.
 
Originally posted by: Nocturnal
Originally posted by: pillage2001
0000=0
0001=1
0010=2
0011=3
0100=4
0101=5
0110=6
0111=7
1000=8
1001=9
1010=A
1011=B
1100=C
1101=D
1110=E
1111=F

It would help if you told me or explained to me how you went about getting that conversion.

Thats the straight mapping of the bin to hex.
0000b = 0d = 0h
1111b = 15d = Fh
 
convert the 4 bits to decimal, if it is <10 then use the decimal number, else use A for 10, B for 11, C for 12, D for 13, E for 14 and F for 15.
 
It's either you convert it to decimal then to Hex or you do them directly. The table I gave is not really hard to remember right??
 
Originally posted by: nord1899
Originally posted by: Nocturnal
Originally posted by: pillage2001
0000=0
0001=1
0010=2
0011=3
0100=4
0101=5
0110=6
0111=7
1000=8
1001=9
1010=A
1011=B
1100=C
1101=D
1110=E
1111=F

It would help if you told me or explained to me how you went about getting that conversion.

Thats the straight mapping of the bin to hex.
0000b = 0d = 0h
1111b = 15d = Fh

So you're converting from decimal to hex. I already have the binary number, converted it to a decimal and also have the octal. I need to convert one of the numbers to a hex. Which is the easiest way to accomplish this? Converting from decimal > hex, or binary > hex, or octal > hex?
 
The four binary digits convert to a single hex number. 1000 => 8 0100 => 4 0010 => 2 and 0001 => 1 As an example 1001 => 8 + 1 = 9
1110 => 8 + 4 + 2 = E (where digits in hex are 1,2,3,4,5,6,7,8,9,A,B,C,D,E).
 
Originally posted by: Nocturnal
Originally posted by: nord1899
Originally posted by: Nocturnal
Originally posted by: pillage2001
0000=0
0001=1
0010=2
0011=3
0100=4
0101=5
0110=6
0111=7
1000=8
1001=9
1010=A
1011=B
1100=C
1101=D
1110=E
1111=F

It would help if you told me or explained to me how you went about getting that conversion.

Thats the straight mapping of the bin to hex.
0000b = 0d = 0h
1111b = 15d = Fh

So you're converting from decimal to hex. I already have the binary number, converted it to a decimal and also have the octal. I need to convert one of the numbers to a hex. Which is the easiest way to accomplish this? Converting from decimal > hex, or binary > hex, or octal > hex?

Whatever works, do it. Some people think its easier to go from Bin->Dec->Hex, but I think its not too hard to go from Bin->Hex.

Group the binary sequence into chunks of 4. Those chunks correlate directly to a Hex number, as per the table. That gives you the Hex number.
 
Originally posted by: nord1899
Originally posted by: Nocturnal
Originally posted by: nord1899
Originally posted by: Nocturnal
Originally posted by: pillage2001
0000=0
0001=1
0010=2
0011=3
0100=4
0101=5
0110=6
0111=7
1000=8
1001=9
1010=A
1011=B
1100=C
1101=D
1110=E
1111=F

It would help if you told me or explained to me how you went about getting that conversion.

Thats the straight mapping of the bin to hex.
0000b = 0d = 0h
1111b = 15d = Fh

So you're converting from decimal to hex. I already have the binary number, converted it to a decimal and also have the octal. I need to convert one of the numbers to a hex. Which is the easiest way to accomplish this? Converting from decimal > hex, or binary > hex, or octal > hex?

Whatever works, do it. Some people think its easier to go from Bin->Dec->Hex, but I think its not too hard to go from Bin->Hex.

Group the binary sequence into chunks of 4. Those chunks correlate directly to a Hex number, as per the table. That gives you the Hex number.

Do you need to show any work to go from Bin to hex?? If not, just refer to the table given and convert from there.
 
Originally posted by: PowerEngineer
The four binary digits convert to a single hex number. 1000 => 8 0100 => 4 0010 => 2 and 0001 => 1 As an example 1001 => 8 + 1 = 9
1110 => 8 + 4 + 2 = E (where digits in hex are 1,2,3,4,5,6,7,8,9,A,B,C,D,E).

If you only spaced or used some type of spacer to see what you meant it would have OWNED. Something like this, perhaps.

Originally posted by: PowerEngineer
The four binary digits convert to a single hex number. 1000 => 8, 0100 => 4, 0010 => 2, and 0001 => 1, As an example 1001 => 8 + 1 = 9
1110 => 8 + 4 + 2 = E (where digits in hex are 1,2,3,4,5,6,7,8,9,A,B,C,D,E).
 
Back
Top