0% found this document useful (0 votes)
30 views

Number Systems in Computer

There are four main number systems used in computers: decimal, binary, octal, and hexadecimal. The document then provides steps and Excel functions for converting between these different number systems, including converting binary to decimal and vice versa, decimal to hexadecimal and vice versa, decimal to octal and vice versa, binary to hexadecimal and vice versa, binary to octal and vice versa, and hexadecimal to octal and vice versa.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

Number Systems in Computer

There are four main number systems used in computers: decimal, binary, octal, and hexadecimal. The document then provides steps and Excel functions for converting between these different number systems, including converting binary to decimal and vice versa, decimal to hexadecimal and vice versa, decimal to octal and vice versa, binary to hexadecimal and vice versa, binary to octal and vice versa, and hexadecimal to octal and vice versa.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Number Systems in Computer

There are four most common number system types in computer and
these are:
1. Decimal: - number with base 10.
2. Binary: - number with base 2.
3. Octal: - number with base 8.
4. Hexadecimal: - number with base 16.

Number System Conversions


Decimal & Binary
Converting binary into decimal number & decimal into binary
 To convert binary to decimal, use these below steps:
 Write down the binary numbers.
 Start from the left by writing 20…2n correspond binary digits.
 Then use power rule into the binary with 1 or less and then add.
 Don’t forget to use the bases.
 Also try to prove if you are right.
 To convert decimal to binary, use one of these methods:
1. Subtraction method.
2. Successive division method.
Subtraction method, use these below steps:
 Write down the decimal number.
 Subtract the decimal number to the least number of digits.
 Then write the binary numbers by taking 1 to the digits used.

Abdinur Ibrahim
0615-54-49-94
 Don’t forget to use the bases.
 Also try to prove if you are right.
Successive division method, use these below steps:
 Write down the decimal number.
 Divide the decimal number by 2 and if there is remainder (R1 or R0).
 Then write the binary numbers starting from MSB to LSB.
 Don’t forget to use the bases.
 Also try to prove if you are right.

Converting binary to decimal number & decimal to binary using Excel


 To convert binary to decimal using excel, use one below functions:
 =decimal (BN,2 for the base).
 =bin2dec(BN).
 Also try to prove if you are right.
 To convert decimal to binary using excel, use one below functions:
 =base (DN,2 for the base).
 = dec2bin (DN).
 Also try to prove if you are right.

Decimal & Hexadecimal


Converting decimal into hexadecimal & hexadecimal into decimal
 To convert decimal to hexadecimal, use these below steps:
 Write down the decimal number.
 Divide the decimal number by 16 and multiply the remainder by 16.
 Then write the hexadecimal numbers starting from MSB to LSB.
 Don’t forget to use letters for the remainder greater than 9.
 Don’t forget to use the bases.
 Also try to prove if you are right.
 To convert hexadecimal to decimal, use these below steps:
 Write down the hexadecimal number and letters to correspondent.
 Start from the left by writing 160…16n correspond hexadecimal digits.
 Multiply 16n to each of their correspondent hexadecimal numbers.

Abdinur Ibrahim
0615-54-49-94
 Then add the numbers.
 Don’t forget to use the bases.
 Also try to prove if you are right.

Converting decimal to hexadecimal number & hexadecimal to decimal


using Excel
 To convert decimal to hexadecimal using excel, use below function:
 =dec2hex(DN).
 Also try to prove if you are right.
 To convert hexadecimal to decimal using excel, use below function:
 =hex2dec (“HDN” if it’s more than 9).
 Also try to prove if you are right.

Decimal & Octal


Converting decimal into octal & octal into decimal
 To convert decimal to octal, use these below steps:
 Write down the decimal number.
 Divide the decimal number by 8 and multiply the remainder by 8.
 Then write the octal numbers starting from MSB to LSB.
 Don’t forget to use the bases.
 Also try to prove if you are right.
 To convert octal to decimal, use these below steps:
 Write down the octal numbers.
 Start from the left by writing 80…8n correspond octal digits.
 Multiply 8n to each of their correspondent octal numbers.
 Then add the numbers.
 Don’t forget to use the bases.
 Also try to prove if you are right.

Converting decimal to octal number & octal to decimal using Excel


 To convert decimal to octal using excel, use below function:
 =dec2oct(DN).
 Also try to prove if you are right.

Abdinur Ibrahim
0615-54-49-94
 To convert octal to decimal using excel, use below function:
 =oct2dec(ON).
 Also try to prove if you are right

Binary & Hexadecimal


Converting binary into hexadecimal & hexadecimal into binary
 To convert binary to hexadecimal, use these below steps:
 Write down the binary numbers by grouping into 4.
 Write correspondent digits by starting 1,2,4,8..,2*n relative to binary.
 Add the numbers with binary 1 correspondent for each groups.
 Don’t forget to use letters for the groups greater than 9.
 Don’t forget to use the bases.
 Also try to prove if you are right.
 To convert hexadecimal to binary, use these below steps:
 Write down the hexadecimal number and letters to correspondent.
 Convert each number into binary and then combine.
 Don’t forget to use the bases.
 Also try to prove if you are right.

Converting binary to hexadecimal number & hexadecimal to binary


using Excel
 To convert binary to hexadecimal using excel, use below function:
 =bin2hex(BN).
 Also try to prove if you are right.
 To convert hexadecimal to binary using excel, use below function:
 =hex2bin (“HDN” if it’s more than 9).
 Also try to prove if you are right.

Binary & Octal


Converting binary into octal & octal into binary
 To convert binary to octal, use these below steps:
 Write down the binary numbers by grouping into 3.
 Write correspondent digits by starting 1,2,4,8..,2*n relative to binary.

Abdinur Ibrahim
0615-54-49-94
 Add the numbers with binary 1 correspondent for each groups.
 Don’t forget to use the bases.
 Also try to prove if you are right.
 To convert octal to binary, use these below steps:
 Write down the octal numbers.
 Convert each number into binary and then combine.
 Don’t forget to use the bases.
 Also try to prove if you are right.

Converting binary to octal number & octal to binary using Excel


 To convert binary to octal using excel, use below function:
 =bin2oct(BN).
 Also try to prove if you are right.
 To convert octal to binary using excel, use below function:
 =oct2bin (ON).
 Also try to prove if you are right.

Hexadecimal & Octal


Converting hexadecimal into octal & octal into hexadecimal
 To convert hexadecimal to octal, use these below steps:
 Write down the hexadecimal number and letters to correspondent.
 Convert each number into binary.
 Write down the binary numbers by grouping into 3.
 Write down the binary numbers by grouping into 3.
 Write correspondent digits by starting 1,2,4,8..,2*n relative to binary.
 Add the numbers with binary 1 correspondent for each groups.
 Don’t forget to use the bases.
 Also try to prove if you are right.
 To convert octal to hexadecimal, use these below steps:
 Write down the octal numbers.
 Convert each number into binary and then group into 4.
 Write correspondent digits by starting 1,2,4,8..,2*n relative to binary.
 Add the numbers with binary 1 correspondent for each groups.

Abdinur Ibrahim
0615-54-49-94
 Don’t forget to use letters for the sum greater than 9.
 Don’t forget to use the bases.
 Also try to prove if you are right.

Converting hexadecimal to octal number & octal to hexadecimal using


Excel
 To convert hexadecimal to octal using excel, use below function:
 =hex2oct ((“HDN” if it’s more than 9).
 Also try to prove if you are right.
 To convert octal to hexadecimal using excel, use below function:
 =oct2hex (ON).
 Also try to prove if you are right.

Abdinur Ibrahim
0615-54-49-94

You might also like