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.

Trending Questions
Where could one find a tutorial for inserting an image using HTML? What are four things Chinese created or invented? If a heater delivers 1500 watts at 110 volts how much the electricity bill will be a month if it is on all the time I leave in Chicago? What class lever is a toilet flush? What safeguards could be imposed when someone sabotage a system by repeatedly creating processes and making them wait for events that will never happen? If the output current is 3.9A on a 19.5V ac adapter can this adapter be replaced with a new ac adapter with an output of 4.7A current on a 19.5V adapter? How many GCSE's do you need to become a dentist? Difference between Internal hashing n external hashing? What are the advantages and disadvantages of flow nozzle? What is icr class? Why hemispherical head for pressure vessel? Can arrays be processed with a single instruction.....without running a loop? What are the disadvantages of using a scaling tower? With an example explain the different string methods in java? What is the acceptable voltage on site? Wap to merge two arrays using c? Wiring Diagram for capacitor start motor with centrifugal switch? What are 3 Chinese inventions that still exist today? When a manual refers to a particular resistor as 2.2 megohm resistor does this means the resistor can safely carry a current of 2200000 amperes? Technology has allowed for the construction of skyscrapers and other high rise buildings how could these buildings be viewed as having a positive and negative environmental effect?