Why do we have multiple number systems in computing?

  • Thread starter Thread starter Raghav Gupta
  • Start date Start date
  • Tags Tags
    Systems
Click For Summary

Discussion Overview

The discussion centers on the existence of multiple number systems in computing, specifically why decimal, binary, octal, and hexadecimal systems are used. It explores the implications of these systems for human readability and historical context in computer architecture.

Discussion Character

  • Exploratory
  • Technical explanation
  • Historical

Main Points Raised

  • Some participants note that while humans primarily use the decimal system, computers operate on binary, leading to the need for other systems like octal and hexadecimal for easier human interaction.
  • It is suggested that octal and hexadecimal serve as shorthand for binary, making it less error-prone for humans to read and remember long binary strings.
  • One participant explains that binary digits can be grouped into sets of three for octal and sets of four for hexadecimal, facilitating conversion and readability.
  • Another participant mentions that early computers used octal due to memory organization in six-bit bytes, while later systems adopted hexadecimal with eight-bit bytes, indicating a historical evolution in number system usage.

Areas of Agreement / Disagreement

Participants generally agree on the utility of octal and hexadecimal as shorthand for binary, but there is no consensus on the necessity of octal in modern computing, as some view it as primarily historical.

Contextual Notes

The discussion reflects varying perspectives on the relevance of octal versus hexadecimal in contemporary computing, with some participants emphasizing historical context while others focus on practical usability.

Raghav Gupta
Messages
1,010
Reaction score
76
We use decimal base system in almost all our calculations.
Computer understands only binary of base 2. Then why octal, hexadecimal etc?
 
Technology news on Phys.org
Raghav Gupta said:
We use decimal base system in almost all our calculations.
Computer understands only binary of base 2. Then why octal, hexadecimal etc?

Because 01010100101011010101011010110100011000100000001000 is too hard to read. Decimal is too hard to decode to get the value of actual bits.
 
  • Like
Likes   Reactions: russ_watters, FactChecker and Raghav Gupta
First, they are NOT really different number systems at all, they are just shorthand for binary.

Second, as Hornbein pointed out, remembering, or even reading, long strings of 1's and 0's is just silly and HIGHLY error prone.

Early computers used octal as a shorthand for binary, later ones used hexidecimal as a shorthand for binary.
 
Last edited:
  • Like
Likes   Reactions: Raghav Gupta
phinds said:
First, they are NOT really different number systems at all, they are just shorthand for binary.

Second, as Hornbein pointed out, remembering, or even reading, long strings of 1's and 0's is just silly and HIGHLY error prone.

Early computers used octal as a shorthand for binary, later ones used hexidecimal as a shorthand for binary.
Binary, octal, and hex are all different forms of the same number.

As was mentioned, binary is too cumbersome for humans to handle, so octal and hex were substituted to make binary numbers easier to read.

By grouping binary digits in sets of three, you can easily convert to octal.

By grouping binary digits in sets of four, you can easily convert to hex.

Taking 01010100101011010101011010110100011000100000001000 as an example:

01 010 100 101 011 010 101 011 010 110 100 011 000 100 000 001 000 = 12453253264304010 octal

01 0101 0010 1011 0101 0101 1010 1101 0001 1000 1000 0000 1000 = 152B55AD18808 hex
 
To expand on what SteamKing said, the memory in some early computers was organized in bytes of six bits. A half-byte was three bits, which could store any number in the range of 0 through 7. These are the digits used in the octal number system.

Not too long after that, there were computers with memory organized in eight-bit bytes. Each half of a byte (a "nybble") could store a number in the range of 0 through 15. In hexadecimal, 0 through F. The upshot is that octal numbering is there mostly for historical reasons, but hex is still very widely used, as it is very easy to convert to and from binary.
 

Similar threads

Replies
17
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
2K
Replies
2
Views
2K
Replies
4
Views
2K
Replies
8
Views
2K
Replies
7
Views
4K
Replies
29
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
5
Views
2K