Why do we have multiple number systems in computing?

  • Thread starter Thread starter Raghav Gupta
  • Start date Start date
  • Tags Tags
    Systems
AI Thread Summary
The discussion highlights the necessity of octal and hexadecimal number systems as shorthand for binary, which is the only format computers understand. Binary strings can be cumbersome and error-prone for humans to read, making octal and hexadecimal more practical for representation. Octal simplifies binary by grouping bits in sets of three, while hexadecimal uses sets of four, facilitating easier conversion and readability. The historical context explains the early use of octal due to six-bit memory organization, transitioning to hexadecimal with the advent of eight-bit bytes. Hexadecimal remains prevalent today due to its efficiency in converting to and from binary.
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 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 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.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Back
Top