|
|
|
|
Binary IntegersAs you know computers can store huge amount of data permanently so that they can be retrieved and manipulated as and when required. What you know already is that computers store them in 0 and 1 format (binary numbers 0, 1). So it will be the combination of 0s and 1s that makes your data. So it is necessary to convert all your input into appropriate form i.e. binaries. For example, let us try to convert 255 decimal into a binary number
So binary digit of integer 255 is 11111111 To convert from binary to decimal you have to multiply the binary numbers from right to left with 2 to the power of its position in the binary number. 1 x 27 + 1 x 26 + 1 x 25 + 1 x 24 + 1 x 23 + 1 x 22 + 1 x 21 + 1 x 20 = 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255 8 digit binary number has a significance in how data is stored in computers. Probably you might have heard about 8-bit, 16-bit... A bit is the smallest memory which can store either 0 or 1. 8 such bits are called 1 Byte. 1024 Bytes is called a KiloByte(KB), 1024KB is 1 MegaByte (MB), 1024 MB is 1 GigaByte (GB). So in 1 Byte, I mean in 8 bits, we can store 256 possible values such as A-Z, a-z, 0-9, and other characters, which resulted in ASCII code tables. ASCII stands for American Standard Code for Information Interchange. |
|
Send mail to arungomes@eircom.net with questions or comments about this web site.
|