answersLogoWhite

0

All bases that are themselves a power of two (2, 4, 8, 16, 32, etc) are useful when notating binary values because the conversion is so trivial. Normally we use base-16 (hexadecimal) because we usually work with 4-bit nybbles (half-bytes). However, sometimes we want to work with 3-bit nybbles, such as when working with 9-bit bytes, or perhaps 21-bit words. For this we use base-8 (octal) notation because any 3-bit grouping can be represented by just one octal digit:

Octal = Binary

0 = 000

1 = 001

2 = 010

3 = 011

4 = 100

5 = 101

6 = 110

7 = 111

Octal notation varies from one programming language to another. Some append the letter 'o' while others might prefix a leading zero. So the 9-bit binary value 111100001 could be notated as 741o or 0741 depending on the language. By contrast, hexadecimal notation for the same value would be 0x1E1 or 1E1h.

You might ask why we don't just use hexadecimal notation for all binary values. We can certainly do that, but when we want to make it clear that we're specifically dealing with 3-bit groupings rather 4-bit groupings, it is best to use octal. In this case the hexadecimal notation implies a 12-bit value which could lead to confusion in our code. Whenever possible, we must strive to express our ideas directly in code.

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

Applications of number system?

Number systems used mainly in encoding, cryptography, digital computing.


How can one determine the machine epsilon in a computing system?

Machine epsilon in a computing system can be determined by finding the smallest number that, when added to 1, results in a value different from 1 in the system's floating-point representation. This can be done by iteratively halving a number until the result is no longer distinguishable from 1.


What is meant by processor in operating system?

the CPU (central processing unit) in a computer is the number-cruncher which is the core of any computing system.


When was ACM Computing Classification System created?

ACM Computing Classification System was created in 1964.


Is cloud computing compatible with a Linux system?

Cloud computing is in fact compatible with the Linux operating system. If I'm not mistaken, you can actually do cloud computing on any operating system.


What is the definition of centralized computing system?

Computing done at a central location. (:


In computing what does NaN stand for?

When one is referring to computing NaN is said to stand for "Not a Number". This means that the monitoring system is not receiving any numeric data. This is often considered to be an error message.


What is modular computing from Wikipedia?

Modular computing refers to a computing architecture that emphasizes the use of interchangeable components or modules to create systems that are flexible and scalable. Each module can perform specific functions and can be easily replaced or upgraded without affecting the entire system. This approach enhances maintainability, allows for customization, and can lead to cost savings in system development and operation. Modular computing is often utilized in both hardware and software design, enabling a more efficient and adaptable computing environment.


What is a denary number?

A denary number is a number based on the ten digits, from 0 to 9. This is in contrast to the binary system used in computing, which consists entirely of 0s and 1s.


What is denary number?

A denary number is a number based on the ten digits, from 0 to 9. This is in contrast to the binary system used in computing, which consists entirely of 0s and 1s.


Is a laptop a computing system?

yes it is


What is the importance of Egyptian number system?

It is very important that you write it proerly.