Binary Code
681pages on
this wiki
Add New Page
this wiki
Binary is a numeral system expressed in the base-2 numeral system, and is the foundation of all computer operating systems. Binary, as the name suggests, consists of only two values (0 and 1, respectively), unlike the decimal system, which consists of ten values.
An example of how the binary system works can be seen in the example below. The twos in the first column represent the core value (2), and the numbers in superscript are exponents. For example, two squared (2^{2}) equals four, two cubed (2^{3}) equals eight, and so on.
2^{7} | 2^{6} | 2^{5} | 2^{4} | 2^{3} | 2^{2} | 2^{1} | 2^{0} |
---|---|---|---|---|---|---|---|
128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |