4.1.3

Representing Numbers

Test yourself

Binary

In everyday life, we use the denary number system. Computers use binary instead.

Illustrative background for DenaryIllustrative background for Denary ?? "content

Denary

  • In everyday life, we use a denary number system.
  • We use 10 symbols to represent each digit.
  • Each digit's place value is multiplied by 10 as we move from right to left.
Illustrative background for BinaryIllustrative background for Binary ?? "content

Binary

  • Binary is an identical system, except using two symbols for each digit.
  • Only 1 and 0 are used in binary.
  • Each digit's place value is multiplied by two as we move from right to left.
Illustrative background for HexadecimalIllustrative background for Hexadecimal ?? "content

Hexadecimal

  • Hexadecimal uses 16 different symbols for each place.
  • Hexadecimal uses the digits 0-9 then A-F:
    • A = 10 in denary, B = 11 ...
  • Each digit's place value is multiplied by 16 as we move from right to left.

Sign and Magnitude

Sign and magnitude is a method of differentiating between positive and negative binary numbers

Illustrative background for Most significant bitIllustrative background for Most significant bit ?? "content

Most significant bit

  • In sign and magnitude representation, the first bit in any byte is called the ‘most significant bit’ (MSB).
  • The MSB determines whether it is a positive or a negative number.
    • If the MSB is a 0, the number is positive.
    • If the MSB is a 1, the number is negative.
Illustrative background for ExampleIllustrative background for Example ?? "content

Example

  • For example:
    • 00000100 represents the number 4
    • 10000100 represents the number -4

Jump to other topics

1Components of a Computer

2Software & Software Development

3Exchanging Data

4Data Types, Data Structures & Algorithms

5Legal, Moral, Cultural & Ethical Issues

6Elements of Computational Thinking

6.1Thinking Abstractly

6.2Thinking Procedurally

6.3Thinking Logically

7Problem Solving & Programming

8Algorithms

Go student ad image

Unlock your full potential with GoStudent tutoring

  • Affordable 1:1 tutoring from the comfort of your home

  • Tutors are matched to your specific learning needs

  • 30+ school subjects covered

Book a free trial lesson