Back to 课程

Computer-science_A-level_Cie

0% Complete
0/0 Steps
  1. computers-and-components
    6 主题
  2. logic-gates-and-logic-circuits
    2 主题
  3. central-processing-unit-cpu-architecture
    6 主题
  4. assembly-language-
    4 主题
  5. bit-manipulation
    1 主题
  6. operating-systems
    3 主题
  7. language-translators
    2 主题
  8. data-security
    3 主题
  9. data-integrity
    1 主题
  10. ethics-and-ownership
    3 主题
  11. database-concepts
    3 主题
  12. database-management-systems-dbms-
    1 主题
  13. data-definition-language-ddl-and-data-manipulation-language-dml
    1 主题
  14. computational-thinking-skills
    1 主题
  15. algorithms
    14 主题
  16. data-types-and-records
    2 主题
  17. arrays
    2 主题
  18. files
    1 主题
  19. introduction-to-abstract-data-types-adt
    1 主题
  20. programming-basics
    1 主题
  21. constructs
    2 主题
  22. structured-programming
    1 主题
  23. program-development-life-cycle
    2 主题
  24. program-design-
    2 主题
  25. program-testing-and-maintenance
    3 主题
  26. user-defined-data-types
    1 主题
  27. file-organisation-and-access-
    3 主题
  28. floating-point-numbers-representation-and-manipulation
    3 主题
  29. protocols
    2 主题
  30. circuit-switching-packet-switching
    1 主题
  31. processors-parallel-processing-and-virtual-machines
    5 主题
  32. boolean-algebra-and-logic-circuits
    4 主题
  33. purposes-of-an-operating-system-os
    3 主题
  34. translation-software
    3 主题
  35. encryption-encryption-protocols-and-digital-certificates
    3 主题
  36. artificial-intelligence-ai
    4 主题
  37. recursion
    1 主题
  38. programming-paradigms
    4 主题
  39. object-oriented-programming
    7 主题
  40. file-processing-and-exception-handling
    2 主题
  41. data-representation
    5 主题
  42. multimedia
    3 主题
  43. compression
    2 主题
  44. networks-and-the-internet
    11 主题
课 Progress
0% Complete

Binary prefixes

What is a binary prefix?

  • A binary prefix is a unit prefix used to indicate multiples of bytes in binary

  • Consider the word kilobyte, “kilo” is the prefix

  • Bytes are the smallest unit of data that can be stored in a computer so there needs to be a way of expressing bytes in larger multiples

Denary prefixes

  • A common way of expressing multiples of bytes is to use denary prefixes:

Denary unit

Equivalent size (bytes)

1 kilobyte (1 KB)

1000

1 megabyte (1 MB)

1,000,000

1 gigabyte (1 GB)

1,000,000,000

1 terabyte (1 TB)

1,000,000,000,000

1 petabyte (1 PB)

1,000,000,000,000,000

  • This system relies on the assumption that 1 kilo = 1000

  • This assumption is based on the denary (base 10) number system

    • E.g. a 1 GB hard drive can store 1 x 109 bytes

Binary prefixes

  • However, computers use the binary (base 2) number system so the denary system is technically inaccurate when describing storage

  • To be precise, expressing multiples of bytes is done using binary prefixes:

Binary unit

Number of bytes (base 2)

Equivalent size (base 10)

1 kibibyte (1 KiB)

210

1024

1 mebibyte (1 MiB)

220

1,048,576

1 gibibyte (1 GiB)

230

1,073,741,824

1 tebibyte (1 TiB)

240

1,099,511,627,776

1 pebibyte (1 PiB)

250

1,125,899,906,842,624

  • Notice the prefixes change depending on the system being used, e.g. kilo (denary) vs kibi (binary)

Why does it matter?

  • The importance of the system being used depends on how precise you need to be

  • Identifying the total amount of memory (RAM) available to a computer must be accurate (use binary prefixes)

    • E.g. 16 GiB RAM can store 16 x 230 bytes of data (17,179,869,184 bytes)

  • when describing storage space, a rough estimate is acceptable (use denary prefixes)

    • E.g. a 16 GB memory stick can store 16 x 109 bytes of data (16,000,000,000 bytes)

Responses

您的邮箱地址不会被公开。 必填项已用 * 标注