answersLogoWhite

0


Best Answer

Each hexadecimal digit represent four binary bits. Using the table... 0 = 0000 1 = 0001 2 = 0010 3 = 0011 4 = 0100 5 = 0101 6 = 0110 7 = 0111 8 = 1000 9 = 1001 A = 1010 B = 1011 C = 1100 D = 1101 E = 1110 F = 1110 ... replace each hexadecimal digit with its correspnding binary digits. As an example, 37AB16 is 00110111101010112.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

8y ago

If the number of bits in the binary value is not an exact multiple of four, pad the binary value with leading zeros. So 1010110100 becomes 001010110100. Split the binary value into groups of 4 bits: 0010, 1011 and 0100. Each group is a nybble (half-a-byte). Convert each nybble to its corresponding hexadecimal digit, as shown below:

0000 = 0x0

0001 = 0x1

0010 = 0x2

0011 = 0x3

0100 = 0x4

0101 = 0x5

0110 = 0x6

0111 = 0x7

1000 = 0x8

1001 = 0x9 1010 = 0xA

1011 = 0xB

1100 = 0xC

1101 = 0xD

1110 = 0xE

1111 = 0xF

Thus we get 0x2, 0xB and 0x4. Combining these hex digits in the same order we get 0x2B4, the hexadecimal equivalent of 1010110100.

Note that we can do the same thing to get the octal notation of a binary value, except we divide the binary value into groups of 3 bits, and convert as follows:

000 = 00

001 = 01

010 = 02

011 = 03

100 = 04

101 = 05

110 = 06

111 = 07

Thus 1010110100 becomes 001 010 110 100 which is 01264 in octal.

Note also that all bases that are a power of two (4, 8, 16, 32, 64 and so on), can be used to notate binary values. We use hexadecimal (base 16) simply because it reduces an 8-digit binary value to a 2-digit hexadecimal value which is much easier to notate. We use octal notation when the bit lengths are some multiple of 3 or when it is more notationally convenient to represent the value in groups of 3 bits, and use binary notation only when we're actually interested in the binary representation itself (the actual bits).

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

Start at the binary point (bp) - the binary equivalent of the decimal point.Group the binary digits into sets of four.

If there are not enough digits add one to three 0s furthest away from the bp.


The hexadecimal point will be in the same position as the binary point. And convert each binary quartet into the hexadecimal equivalent as follows:


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


This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you convert binary numbers to hexadecimal notation?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Why people are using Hexadecimal rather than binary numbers while doing programs?

hexadecimal can express 16 bit binary in 4 place form, not 16.


What does hexadecimal base 16 convert binary equal?

16 is the 4th power of 2. So a hexadecimal number is converted to binary by replacing each hex digit by the 4-bit binary number having the same value. Conversely, in converting binary to hexadecimal, we group every 4 bits starting at the decimal (binary?) point and replace it with the equivalent hex digit. For example, the hexadecimal number 3F9 in binary is 1111111001, because 3 in binary is 11, F (decimal 15) is 1111, and 9 is 1001.


How do you convert hexadecimal 4c.B7 to Binary?

Convert each hex digit to four binary digits. If you get less than three (for example, 7 --> 111), fill it out with zeroes to the left (in this case, 0111).


What is the 4-binary number assoiated with the hexadecimal symbol C?

0xc = 1100 Hexadecimal digits use exactly 4 binary digits (bits). The 0x0 to 0xf of hexadecimal map to 0000 to 1111 of binary. Thinking of the hexadecimal digits as decimal numbers, ie 0x0 to 0x9 are 0 to 9 and 0xa to 0xf are 10 to 15, helps with the conversion to binary: 0xc is 12 decimal which is 8 + 4 → 1100 in [4 bit] binary.


Write a program that prints a table of the binary octal and hexadecimal equivalents of the decimal numbers in the range 1 through to 256?

import java.util.Scanner; public class NumberSystem { public void displayConversion() { Scanner input = new Scanner(System.in); System.out.printf("%-20s%-20s%-20s%-20s\n", "Decimal", "Binary", "Octal", "Hexadecimal"); for ( int i = 1; i <= 256; i++ ) { String binary = Integer.toBinaryString(i); String octal = Integer.toOctalString(i); String hexadecimal = Integer.toHexString(i); System.out.format("%-20d%-20s%-20s%-20s\n", i, binary, octal, hexadecimal); } } // returns a string representation of the decimal number in binary public String toBinaryString( int dec ) { String binary = " "; while (dec >= 1 ) { int value = dec % 2; binary = value + binary; dec /= 2; } return binary; } //returns a string representation of the number in octal public String toOctalString( int dec ) { String octal = " "; while ( dec >= 1 ) { int value = dec % 8; octal = value + octal; dec /= 8; } return octal; } public String toHexString( int dec ) { String hexadecimal = " "; while ( dec >= 1 ) { int value = dec % 16; switch (value) { case 10: hexadecimal = "A" + hexadecimal; break; case 11: hexadecimal = "B" + hexadecimal; break; case 12: hexadecimal = "C" + hexadecimal; break; case 13: hexadecimal = "D" + hexadecimal; break; case 14: hexadecimal = "E" + hexadecimal; break; case 15: hexadecimal = "F" + hexadecimal; break; default: hexadecimal = value + hexadecimal; break; } dec /= 16; } return hexadecimal; } public static void main( String args[]) { NumberSystem apps = new NumberSystem(); apps.displayConversion(); } }

Related questions

Convert 110001100 into its decimal numbers?

The answer depends on what you are converting from: binary, ternary, octal, hexadecimal ...


Convert 110110.101 to hexadecimal?

Assuming the original was in binary, the answer is 36.A


Convert binary octal 864BF into hexadecimal?

Okay, I'm pretty sure that 864 binary is 30 hexadecimal. - RG


How you convert 2011 binary form and hexadecimal form?

The answer depends on what form you wish to convert binary and hex 2011 to.


Convert the hexadecimal number ABCDEF to octal and binary?

Octal = 52746757 Binary = 101010111100110111101111


Convert hexadecimal 4F7B in to binary and decimal?

4F7B: Binary = 100111101111011 Decimal = 20347


Convert EF16 to a binary number?

The binary equivalent of the hexadecimal number EF16 is 1110111100010110.


Why do you use octal and hexadecimal number system as shortcut notation?

Memory dump which are in binary numbers would have many numbers of 0s and 1s. working with these numbers would be very difficult. Hence two number system hexadecimal and octal number system is used because these numbers are inter convertible with binary numbers by the concept of bits.


What does the binary number 00000001 convert to in the hexadecimal system?

01


Convert ABCD1 hexadecimal number to binary?

ABCD1 = 10101011110011010001


How do you convert hexadecimal numbers into binary numbers?

Binary to hexadecimal is very easy because hexadecimal numbers are designed specifically so that each hex digit is exactly 4 bits (i.e. 16 different values). So if you had this binary number: binary: 100011011011110101000100001 You could put in commas every four places (starting on the left): binary: 100,0110,1101,1110,1010,0010,0001 Then you could write the hex values immediately below: binary: 0100,0110,1101,1110,1010,0010,0001 hex: 4 6 D E A 2 1 and the hex value would be 46DEA21.


What is the hexadecimal value of the binary numbers 110011101111?

It is CEF0.