Binary Addition

And why it is sometimes difficult

Introduction

Binary is computer language made up of 1's and 0's. These numbers represent electronic signals inside your computer.

Addition

| 8 | 4 | 2 | 1 |

--------------- The 0's are off, so you ignore the numbers above the 0's. 2 + 1 = 3 or 0011

| 0 | 0 | 1 | 1 |


| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |

----------------------------------- 16 + 8 + 4 = 38 or 00011100. The 0's are ignored for adding.

| 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 |

Bits, Nibbles and Bytes

Bits, Nibbles and Bytes are used to measure binary capacity. A bit is one 1 or 0, A nibble is 4 bits and a byte is 8 bits.


Pyramid of bits


bit

nibble (4 bits)

byte (8 bits)

kilobyte (1024 bytes)

megabyte (1024 kilobytes)

gigabyte (1024 megabytes)

terabyte (1024 gigabytes)


The number of bytes used (1024) is used because it comes up on the chain of binary powers (2^10)