|
Decimal Numbers are understood by Human
but to make computer understand these number they must be
converted to binary. The convenient representation of binary
numbers is hexadecimal number system. We also have ASCII
System which is used for Alphanumeric code. Binary format of
Alphanumeric code is ASCII System. In ASCII System a
Computer sees a file not as character but as number. e.g
Four will be read as:
F o
u r
70 111 117 114
Decimal to Binary
Conversion
Converting a decimal number to Binary
number involves following steps:
Say we have a number 25.
1.Divide 25 by 2 because binary number
system has base 2.
2.Proceed this way taking the remainder
out.
25/2=12 Remainder=1-----LSB
12/2=6 Remainder=0
6/2=3 Remainder=0
3/2=1 Remainder=1
1/2=0 Remainder=1------MSB
Answer=11001::Go from MSB To LSB
|