knowt logo

Binary

  • Definition:

    • Binary is a base-2 number system that uses only two digits, 0 and 1.

  • Representation:

    • Each digit in binary represents a power of 2.

    • Example: 1011 in binary is equivalent to 11 in decimal.

  • Usage:

    • Computers use binary to represent data and perform calculations.

    • Binary code is the foundation of all digital systems.

  • Conversion:

    • Decimal to binary conversion involves dividing the decimal number by 2.

    • Binary to decimal conversion involves multiplying each digit by 2 raised to the power of its position.

  • Importance:

    • Understanding binary is crucial for computer science and programming.

    • It forms the basis of how computers store and process information.

Binary 

In binary we count 0 to 1 

Instead pf having digits represents increments of 10 times, we have increments of 2 times 

So the number 10 would be broken down like so: 

 

255 is the highest number you would be expected to write because it's the largest value stored In a byte 

Binary to Denary conversion 

Lets convert the binary number 10011010 

 

128 

64 

32 

16 

Added together 

 

128 

 

 

16 

 

 

154 

 

  1. Odd numbers in binary will always end in a 1 

  2. An overflow error occurs when you end up with more bits after an edition 

Binary Shift

Bit 

crumb - 2 bits

Nibble – 4 bits 

Byte – 8 bits, 2 nibbles 

Kilobyte 1000 bytes

Megabyte 1 000 000 bytes

Gigabyte  1 000 000 000 bytes 1000 megabytes

Terabyte 1 000 000 000 000 bytes or 1000 Giga bytes

S

Binary

  • Definition:

    • Binary is a base-2 number system that uses only two digits, 0 and 1.

  • Representation:

    • Each digit in binary represents a power of 2.

    • Example: 1011 in binary is equivalent to 11 in decimal.

  • Usage:

    • Computers use binary to represent data and perform calculations.

    • Binary code is the foundation of all digital systems.

  • Conversion:

    • Decimal to binary conversion involves dividing the decimal number by 2.

    • Binary to decimal conversion involves multiplying each digit by 2 raised to the power of its position.

  • Importance:

    • Understanding binary is crucial for computer science and programming.

    • It forms the basis of how computers store and process information.

Binary 

In binary we count 0 to 1 

Instead pf having digits represents increments of 10 times, we have increments of 2 times 

So the number 10 would be broken down like so: 

 

255 is the highest number you would be expected to write because it's the largest value stored In a byte 

Binary to Denary conversion 

Lets convert the binary number 10011010 

 

128 

64 

32 

16 

Added together 

 

128 

 

 

16 

 

 

154 

 

  1. Odd numbers in binary will always end in a 1 

  2. An overflow error occurs when you end up with more bits after an edition 

Binary Shift

Bit 

crumb - 2 bits

Nibble – 4 bits 

Byte – 8 bits, 2 nibbles 

Kilobyte 1000 bytes

Megabyte 1 000 000 bytes

Gigabyte  1 000 000 000 bytes 1000 megabytes

Terabyte 1 000 000 000 000 bytes or 1000 Giga bytes