0% found this document useful (0 votes)
11 views1 page

1 question

Uploaded by

apkagtname
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views1 page

1 question

Uploaded by

apkagtname
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Courses Tutorials DSA Data Science Web Tech Sign In

Courses @90% Refund DSA Practice Mathematical Algorithm Mathematical Algorithms Pythagorean Triplet Fibonacci Number Euclidean Algorithm LCM of Array GCD of Array Binomial Coefficient Catalan Numbers Sieve of Eratosthenes Euler Totient Function Modular Expo

Number System and Base Conversions


Last Updated : 05 Aug, 2024

Electronic and Digital systems may use a variety of different number systems, (e.g. Decimal, Hexadecimal, Octal, Binary), or even Duodecimal or less well
known but better named Uncial. All the other bases other than Decimal result from computer usage. Uncial (named from Latin for 1/12 “uncia” the base
twelve analogue of Decimal from the Latin word for 1/10 “decima”).

Table of Content
What is Number System ?
Number System Conversion Methods
1. Decimal to Binary Number System
2. Binary to Decimal Number System
3. Decimal to Octal Number System
4. Octal to Decimal Number System
5. Hexadecimal to Binary Number System
6. Binary to Hexadecimal Number System
7. Binary to Octal Number System

What is Number System ?


A number system is a method to represent numbers mathematically. It can use arithmetic operations to represent every number uniquely. To represent a
number, it requires a base or radix.

Types of Number System


There are four common types of number systems based on the radix or base of the number :

1. Decimal number system or Base 10 number system


2. Binary number system or Base 2 number system
3. Octal number system or Base 8 number system
4. Hexadecimal number system or Base 16 number system

Number System Conversion Methods


A number N in base or radix b can be written as:

(N)b = dn-1 dn-2 -- -- -- -- d1 d0 . d-1 d-2 -- -- -- -- d-m

In the above, dn-1 to d0 is the integer part, then follows a radix point, and then d-1 to d-m is the fractional part.

dn-1 = Most significant bit (MSB)


d-m = Least significant bit (LSB)

1. Decimal to Binary Number System


To convert from decimal to binary, start dividing decimal number by 2, and whatever the reminder getting, writing down from bottom to top, and that will be
the binary number representation of the decimal number. And the number contains fractional part, then multiply 2 in the fractional part.

Example

(10.25)10

Note: Keep multiplying the fractional part with 2 until decimal part 0.00 is obtained.
(0.25)10 = (0.01)2

Answer: (10.25)10 = (1010.01)2

2. Binary to Decimal Number System


To convert from binary to decimal, start multiplying the exponent of 2 with each digit of the number in decreasing order. If the number contains fractional
part then will divide it by the exponent of 2.

Example

(1010.01)2
1x23 + 0x22 + 1x21+ 0x20 + 0x2 -1
+ 1x2 -2
= 8+0+2+0+0+0.25 = 10.25
(1010.01)2 = (10.25)10

3. Decimal to Octal Number System


To convert from decimal to octal, start dividing decimal number by 8, and whatever the reminder getting, writing down from bottom to top, and that will be
the octal number representation of the decimal number. And the number contains fractional part, then multiply 8 in the fractional part.

Example

(10.25)10
(10)10 = (12)8
Fractional part:
0.25 x 8 = 2.00

Note: Keep multiplying the fractional part with 8 until decimal part .00 is obtained.
(.25)10 = (.2)8

Answer: (10.25)10 = (12.2)8

4. Octal to Decimal Number System


To convert from octal to decimal, start multiplying the exponent of 8 with each digit of the number in decreasing order. If the number contains fractional part
then will divide it by the exponent of 8.

Example

(12.2)8
1 x 81 + 2 x 80 +2 x 8-1 = 8+2+0.25 = 10.25
(12.2)8 = (10.25)10

5. Hexadecimal to Binary Number System


To convert from Hexadecimal to Binary, write the 4-bit binary equivalent of hexadecimal.

Example

(3A)16 = (00111010)2

6. Binary to Hexadecimal Number System


To convert from Binary to Hexadecimal, start grouping the bits in groups of 4 from the right-end and write the equivalent hexadecimal for the 4-bit binary.
Add extra 0’s on the left to adjust the groups.

Example

1111011011
0011 1101 1011
(001111011011 )2 = (3DB)16

7. Binary to Octal Number System


To convert from binary to octal, start grouping the bits in groups of 3 from the right end and write the equivalent octal for the 3-bit binary. Add 0’s on the
left to adjust the groups.

Example

111101101

111 101 101

(111101101)2 = (755)8

Conclusion
In the conclusion, number system provides a representation of a number with respect to the given base or radix. Basically, we have common types of number
system named as binary number system, decimal number system, octal number system and hexadecimal number system.

Number System and Base Conversions – FAQs

What is number system and its conversion?

A number system is a method to represent numbers mathematically. It can use arithmetic operations to represent every number uniquely. To represent
a number, we convert it requires a base or radix.

How to do base conversions?

For this, first take the number and then divide it by the given base. Then note down the remainder obtained after the division. Then, divide the quotient
of the division obtained by the given base.

How to calculate number system?

There are 3 required steps to calculate the number system.

STEP 1 – Divide the number with the given base of another number.

STEP 2 – Note down the resulting remainder

STEP 3 – Divide the quotient

Unlock your potential with our DSA Self-Paced course, designed to help you master Data Structures and Algorithms at your own pace. In 90 days,
you’ll learn the core concepts of DSA, tackle real-world problems, and boost your problem-solving skills, all at a speed that fits your schedule. With
comprehensive lessons and practical exercises, this course will set you up for success in technical interviews and beyond.

And here's the challenge – join the Three 90 Challenge! Complete 90% of the course in 90 days, and you’ll earn a 90% refund. It's a great way to stay
motivated, track your progress, and reward yourself for your dedication. Start the challenge today, and push your limits to achieve mastery in DSA!

Comment More info Advertise with us Next Article


1's and 2's complement of a Binary Number

Similar Reads
Digital Electronics and Logic Design Tutorials
In this Digital Electronics and Logic Design tutorial, we will dive deep into the fundamentals and advanced concepts of digital electronics and logic design. This comprehensive guide covers everything
from basic principles to complex applications, featuring detailed modules on features, examples, cl

3 min read

Number Systems

Number System and Base Conversions


Electronic and Digital systems may use a variety of different number systems, (e.g. Decimal, Hexadecimal, Octal, Binary), or even Duodecimal or less well known but better named Uncial. All the other
bases other than Decimal result from computer usage. Uncial (named from Latin for 1/12 "uncia" the ba

5 min read

1's and 2's complement of a Binary Number


Given a Binary Number as a string, print its 1's and 2's complements. 1’s complement of a binary number is another binary number obtained by toggling all bits in it, i.e., transforming the 0 bit to 1 and
the 1 bit to 0.In the 1's complement format , the positive numbers remain unchanged . The negati

9 min read

BCD or Binary Coded Decimal


Binary Coded Decimal, or BCD, is another process for converting decimal numbers into their binary equivalents. It is a form of binary encoding where each digit in a decimal number is represented in the
form of bits.This encoding can be done in either 4-bit or 8-bit (usually 4-bit is preferred).It is

3 min read

Error Detection Codes: Parity Bit Method


Error Detection Codes: The binary information is transferred from one location to another location through some communication medium. The external noise can change bits from 1 to 0 or 0 to 1. This
change in values changes the meaning of the actual message and is called an error. For efficient data t

6 min read

Boolean Algebra and Logic Gates

Minimization Techniques

Combinational Circuits

Sequential Circuits

Conversion of Flip-Flop

Register, Counter, and Memory Unit

LMNs and GATE PYQs

Practice Questions - Digital Logic & Design

Digital Electronics Interview Questions for 2024 [Updated]


In this interview prepration guide, we have covered the top 50 Digital Electronics Interview questions for VLSI or embedded systems along with their answers. These interview questions on Digital
Electronics are the most frequently asked Interview Questions for both Freshers and candidates who have y

15+ min read

Company Languages DSA Data Science & ML Web Technologies Python Tutorial
About Us Python Data Structures Data Science With Python HTML Python Programming Examples
Corporate & Communications Address: Legal Java Algorithms Data Science For Beginner CSS Python Projects
A-143, 7th Floor, Sovereign Corporate In Media C++ DSA for Beginners Machine Learning JavaScript Python Tkinter
Tower, Sector- 136, Noida, Uttar Pradesh Contact Us PHP Basic DSA Problems ML Maths TypeScript Web Scraping
(201305)
Advertise with us GoLang DSA Roadmap Data Visualisation ReactJS OpenCV Tutorial
Registered Address: GFG Corporate Solution SQL Top 100 DSA Interview Problems Pandas NextJS Python Interview Question
K 061, Tower K, Gulshan Vivante Placement Training Program R Language DSA Roadmap by Sandeep Jain NumPy Bootstrap Django
Apartment, Sector 137, Noida, Gautam GeeksforGeeks Community Android Tutorial All Cheat Sheets NLP Web Design
Buddh Nagar, Uttar Pradesh, 201305 Tutorials Archive Deep Learning

Computer Science DevOps System Design Inteview Preparation School Subjects GeeksforGeeks Videos
Operating Systems Git High Level Design Competitive Programming Mathematics DSA
Computer Network Linux Low Level Design Top DS or Algo for CP Physics Python
Database Management System AWS UML Diagrams Company-Wise Recruitment Process Chemistry Java
Software Engineering Docker Interview Guide Company-Wise Preparation Biology C++
Digital Logic Design Kubernetes Design Patterns Aptitude Preparation Social Science Web Development
Advertise with us Engineering Maths Azure OOAD Puzzles English Grammar Data Science
Software Development GCP System Design Bootcamp Commerce CS Subjects
Software Testing DevOps Roadmap Interview Questions World GK

@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved

Do Not Sell or Share My Personal Information

We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy Got It !

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy