- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How do we convert binary to decimal and decimal to binary?
Binary is the simplest kind of number system that uses only two digits of 0 and 1 (i.e. value of base 2). Since digital electronics have only these two states (either 0 or 1), so binary number is most preferred in modern computer engineer, networking and communication specialists, and other professionals.
Whereas Decimal number is most familiar number system to the general public. It is base 10 which has only 10 symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.
Since number numbers are type of positional number system. That means weight of the positions from right to left are as 20, 21, 22, 23... and so on for the integer part and weight of the positions from left to right are as 2-1, 2-2, 2-3, 2-4... and so on for the fractional part.
Example:
Convert binary number 11001010 into decimal number.
= (11001010)2
= 1 x 27 + 1 x 26 + 0 x 25 + 0 x 24 + 1 x 23 + 0 x 22 + 1 x 21 + 0 x 20
= 128 + 64 + 0 + 0 + 8 + 0 + 2 + 0
= (202)10
- Related Articles
- How to Convert Binary to Decimal?
- How to Convert Decimal to Binary?
- Convert Decimal to Binary in Java
- How to convert Decimal to Binary in JavaScript?
- How to convert Binary to Decimal in JavaScript?
- How to convert Decimal to Binary using C#?
- C# Program to Convert Binary to Decimal
- Swift Program to convert Decimal to Binary
- Swift Program to convert Binary to Decimal
- Haskell Program to convert Decimal to Binary
- Haskell Program to convert Binary to Decimal
- How to Convert Decimal to Binary, Octal, and Hexadecimal using Python?
- Java Program to convert from decimal to binary
- C++ Program To Convert Decimal Number to Binary
- Python program to convert decimal to binary number
