Binary Code, which is also called Binary Number System, today we will know about what is binary (What Is Binary Code) and what is its function in our computer and why it is necessary for our computer.
In simple language, binary number is a numeric system/code. Which uses only two numbers and that is 0 and 1, this code is performed in the processor present in all our computers. And Binary Number System is the internal language of the computer.
In Binary Number System no other number or character is used except 0 and 1.
As we know computer is an electronic machine that’s why all our computers run on Binary Number System technology and understand only the language of Binary Number System.
Now you must be thinking that if our computer understands only the language of Binary Number and only 0 and 1 are used in this code then how does the computer understand our given order and according to our given order. How does it work? So you will get the answer of this also in this post.
Our computers work together with software and hardware, if the computer does not have any necessary hardware or software, then no computer works in that condition.
Whenever we input a command (or data) to our computer through an input device like keyboard or mouse, then that command goes to the processor present in the computer. And the processor is also called CPU i.e. Central Processing Unit.
When our order reaches the processor, then the processor has to fulfill the order given by us along with the software of the computer, but our computer system does not understand our spoken language, but the processor of our computer interprets our given commands in Binary Number. can transfer
The processor itself converts our language into binary code and after converting, the processor itself fulfills our given order by processing it together with the computer’s software.
When the task given according to you is completed, then the computer converts and arranges the result of that work in your language and sends it to the output device like monitor, where you can see the result of your given command.
You can also read : What Is Computer Virus, 7 Types Of Computer Viruses?
Now we will know how to convert decimal ie Numbers to Binary along with some quotes – if you are a student of Computer Stream then you must know this (by the way, in today’s time, whoever is interested in Computer Technology, they also know this. Everyone should have knowledge)
By the way, there are many ways to convert decimal(Number) to binary. But the easiest way is explained in this post.
First of all, we will tell you the Binary Code of 95.
To get the binary code of 95, you have to continuously divide 95 by 2 until the last answer (last answer) comes to 1 or 0 and we have to note the reminder that comes on divide.
Divide | Answer | Remainder |
95/2 | = 47 | 1 |
47/2 | = 23 | 1 |
23/2 | = 11 | 1 |
11/2 | = 5 | 1 |
5/2 | = 2 | 1 |
5/2 | = 1Â (Last Answer) | 0 |
Now to get the binary, the last answer that has come which is 1 has to be written first. And then the reminders that have come before him will have to be written from bottom to top.
like this
1 = This is the Last Answer, 011111 This is the Reminders from the bottom to the top
So this is the binary code of 95
Decimal To Binary
95 = 1011111
Similarly, you can remove the Binary Code of any number.
We have learned about converting numbers into binary, now it is very important to know how to convert alphabet into binary code.
Now we will need a chart to convert alphabet to binary and the name of that chart is ASCII Conversion Chart
The Binary Code of both Small and Capital alphabets is different like:-
If the binary of small a = 01100001 then this is
Capital A’s binary = 01000001 it is both are not same
For this reason, the chart of both the letters (alphabet) is also different.
Small Letter | ASCII Code | Binary Code |
a | 97 | 01100001 |
b | 98 | 01100010 |
c | 99 | 01100011 |
d | 100 | 01100100 |
e | 101 | 01100101 |
f | 102 | 01100110 |
g | 103 | 01100111 |
h | 104 | 01101000 |
i | 105 | 01101001 |
j | 106 | 01101010 |
k | 107 | 01101011 |
l | 108 | 01101100 |
m | 109 | 01101101 |
n | 110 | 01101110 |
o | 111 | 01101111 |
p | 112 | 01110000 |
q | 113 | 01110001 |
r | 114 | 01110010 |
s | 115 | 01110011 |
t | 116 | 01110100 |
u | 117 | 01110101 |
v | 118 | 01110110 |
w | 119 | 01110111 |
x | 120 | 01111000 |
y | 121 | 01111001 |
z | 122 | 01111010 |
Capital Letter | ASCII Code | Binary |
A | 65 | 1000001 |
B | 66 | 01000010 |
C | 67 | 01000011 |
D | 68 | 01000100 |
E | 69 | 01000101 |
F | 70 | 01000110 |
G | 71 | 01000111 |
H | 72 | 01001000 |
I | 73 | 01001001 |
J | 74 | 01001010 |
K | 75 | 01001011 |
L | 76 | 01001100 |
M | 77 | 01001101 |
N | 78 | 01001110 |
O | 79 | 01001111 |
P | 80 | 01010000 |
Q | 81 | 01010001 |
R | 82 | 01010010 |
S | 83 | 01010011 |
T | 84 | 01010100 |
U | 85 | 01010101 |
V | 86 | 01010110 |
W | 87 | 01010111 |
X | 88 | 01011000 |
Y | 89 | 01011001 |
Z | 90 | 01011010 |
By the way, we have told you by removing the binary codes of all the text in both these tables.
But in many tables, there are only ASCII numbers of characters, from those numbers, we have to extract the binary code and in this article, we have already taken a tree to convert your number to binary code, in the same way the ASCII number of the character from the chart. Seeing that the binary code of that number is removed and the same code will be the character’s binary code.
Hope you have come to know what is binary code and you must have come to know binary code of numbers and characters.
If you still have any question in your mind then you can ask us by commenting. Thank you for reading this article, please tell us by commenting how did you like this article and whether it was useful for you or not.