• Home
  • About Us
  • Contact Us
  • RTL Version
PcMotion
  • Weather
  • Innovations
  • Engineering
  • Technical tutorials
  • Technological advances
Home

Computer number conversation

byYusuf Bin Sa'id -Thursday, September 24, 2020
0



Computer - Number Conversion

 

There are many methods or techniques which can be used to convert numbers from one base to another. In this chapter, we'll demonstrate the following −

Decimal to Other Base System


Other Base System to Decimal


Other Base System to Non-Decimal


Shortcut method - Binary to Octal


Shortcut method - Octal to Binary


Shortcut method - Binary to Hexadecimal


Shortcut method - Hexadecimal to Binary


Decimal to Other Base System

Step 1 − Divide the decimal number to be converted by the value of the new base.

Step 2 − Get the remainder from Step 1 as the rightmost digit (least significant digit) of the new base number.

Step 3 − Divide the quotient of the previous divide by the new base.

Step 4 − Record the remainder from Step 3 as the next digit (to the left) of the new base number.

Repeat Steps 3 and 4, getting remainders from right to left, until the quotient becomes zero in Step 3.

The last remainder thus obtained will be the Most Significant Digit (MSD) of the new base number.

Example

Decimal Number: 2910

Calculating Binary Equivalent −

StepOperationResultRemainderStep 129 / 2141Step 214 / 270Step 37 / 231Step 43 / 211Step 51 / 201

As mentioned in Steps 2 and 4, the remainders have to be arranged in the reverse order so that the first remainder becomes the Least Significant Digit (LSD) and the last remainder becomes the Most Significant Digit (MSD).

Decimal Number : 2910 = Binary Number : 111012.

Other Base System to Decimal System

Step 1 − Determine the column (positional) value of each digit (this depends on the position of the digit and the base of the number system).

Step 2 − Multiply the obtained column values (in Step 1) by the digits in the corresponding columns.

Step 3 − Sum the products calculated in Step 2. The total is the equivalent value in decimal.

Example

Binary Number: 111012

Calculating Decimal Equivalent −

StepBinary NumberDecimal NumberStep 1111012((1 x 24) + (1 x 23) + (1 x 22) + (0 x 21) + (1 x 20))10Step 2111012(16 + 8 + 4 + 0 + 1)10Step 31110122910

Binary Number : 111012 = Decimal Number : 2910

Other Base System to Non-Decimal System

Step 1 − Convert the original number to a decimal number (base 10).

Step 2 − Convert the decimal number so obtained to the new base number.

Example

Octal Number : 258

Calculating Binary Equivalent −

Step 1 - Convert to Decimal

StepOctal NumberDecimal NumberStep 1258((2 x 81) + (5 x 80))10Step 2258(16 + 5)10Step 32582110

Octal Number : 258 = Decimal Number : 2110

Step 2 - Convert Decimal to Binary

StepOperationResultRemainderStep 121 / 2101Step 210 / 250Step 35 / 221Step 42 / 210Step 51 / 201

Decimal Number : 2110 = Binary Number : 101012

Octal Number : 258 = Binary Number : 101012

Shortcut Method ─ Binary to Octal

Step 1 − Divide the binary digits into groups of three (starting from the right).

Step 2 − Convert each group of three binary digits to one octal digit.

Example

Binary Number : 101012

Calculating Octal Equivalent −

StepBinary NumberOctal NumberStep 1101012010 101Step 210101228 58Step 3101012258

Binary Number : 101012 = Octal Number : 258

Shortcut Method ─ Octal to Binary

Step 1 − Convert each octal digit to a 3-digit binary number (the octal digits may be treated as decimal for this conversion).

Step 2 − Combine all the resulting binary groups (of 3 digits each) into a single binary number.

Example

Octal Number : 258

Calculating Binary Equivalent −

StepOctal NumberBinary NumberStep 1258210 510Step 22580102 1012Step 32580101012

Octal Number : 258 = Binary Number : 101012

Shortcut Method ─ Binary to Hexadecimal

Step 1 − Divide the binary digits into groups of four (starting from the right).

Step 2 − Convert each group of four binary digits to one hexadecimal symbol.

Example

Binary Number : 101012

Calculating hexadecimal Equivalent −

StepBinary NumberHexadecimal NumberStep 11010120001 0101Step 2101012110 510Step 31010121516

Binary Number : 101012 = Hexadecimal Number : 1516

Shortcut Method - Hexadecimal to Binary

Step 1 − Convert each hexadecimal digit to a 4-digit binary number (the hexadecimal digits may be treated as decimal for this conversion).

Step 2 − Combine all the resulting binary groups (of 4 digits each) into a single binary number.

Example

Hexadecimal Number : 1516

Calculating Binary Equivalent −

StepHexadecimal NumberBinary NumberStep 11516110 510Step 2151600012 01012Step 31516000101012

Hexadecimal Number : 1516 = Binary Number : 101012

h2 { color:#0000FF; } 

  • Facebook
  • Twitter
Yusuf Bin Sa'id

Hi, I am Yusuf, a full-time Freelance Writer on technology with ten years of experience. Technology is my topmost priority!

You may like these posts

Post a Comment

Previous Post Next Post
  • Link 1
  • Link 2
  • Link 3
  • Link 4

Kindly expand and read your favorite articles below

IP addressing

byYusuf Bin Sa'id-Wednesday, August 04, 2021

Page 1: Network protocols

Wednesday, August 04, 2021

Computer hardware

Thursday, September 24, 2020

Networking tools

Wednesday, August 04, 2021

Page 1: Networking basic tutorials

Tuesday, August 03, 2021

Cabling

Wednesday, August 04, 2021

Types of networks

Wednesday, August 04, 2021

Follow Us

Most read articles

Subscribe Us

Quots of the day

1. Wisdom is a great source of power. It’s through others’ stories of failure and success that we learn the most. It’s through their experiences of things we have yet to witness that feeds us the knowledge we need to fly high, to build upon what we already know.
2. There is little in life that a wise mind can’t conquer. And it’s the sage-like guidance that inspires us to make our life that much better.

Stay in touch

PcMotion

Animation

Featured post

Peer-to-peer networks and Client-server networks

Yusuf Bin Sa'id- Thursday, August 05, 2021

Search This Blog

Subscribe our Youtube channel

Biology

Backlinks of several websites related to biological matters


1. Animals and their classifications

2. Animals Facts from A-Z

3. Animals & Plants life cycle

4. Animal encyclopedia

PcMotion

Social

  • 230,000
  • 230,000
  • 230,000
  • 230,000
  • 230,000
  • 230,000
  • 230,000
  • 230,000

Trending posts

Popular Posts

  • IP addressing
    LESSON 1 The IP addresses are divided into three different types, based on their operational characteristics: 1. Unicast IP Addresses – an ...
  • Page 1: Network protocols
    LESSON 1 The TCP/IP suite is a set of protocols used on computer networks today (most notably on the Internet). It provides an end-to-end co...
  • Computer hardware
    Computer - Hardware Hardware represents the physical and tangible components of a computer, i.e. the components that can be seen and touche...
  • Networking tools
    LESSON 1 A ping is perhaps the most commonly used tool when troubleshooting a network. Ping (Packet Internet Groper) tool is included with m...

Donation

Who I am?

test

Hi, I am Yusuf, a full-time Freelance Writer on technology with ten years of experience. Technology is my topmost priority!. I base in Northern Nigeria.

Labarin wasanni

FOOTBALL

PcMotion

About Us

We strongly dive into the ocean of Technology striving to make the world a better place to live. Nowadays Science and technology are the most important part of our daily lives matters, therefore we learned to survive on technology and we standstill to teach others for free.

Design by Yusufwap Inc and distributed byBlogger Templates
  • orkut
  • Koo
  • webber
  • ablong

Contact Form