MHB Converting Octal 421 to Nibble, Byte, Word & Long Word

  • Thread starter Thread starter bergausstein
  • Start date Start date
Click For Summary
SUMMARY

The conversion of the octal number 421 (base 8) to various data types reveals that it requires 9 bits for storage, as each octal digit corresponds to 3 bits. The binary representation of 421 is 100010001, which translates to 3 nibbles (0001 0001 0001), 2 bytes (00000001 00010001), 1 word (0000000100010001), and 1 long word (00000000000000000000000100010001). Each conversion is confirmed as accurate by participants in the discussion.

PREREQUISITES
  • Understanding of octal number system
  • Knowledge of binary representation
  • Familiarity with data types: nibble, byte, word, long word
  • Basic arithmetic operations for bit calculations
NEXT STEPS
  • Research the conversion process from octal to binary
  • Learn about the significance of data types in computer architecture
  • Explore bit manipulation techniques in programming
  • Study the implications of data size on memory allocation
USEFUL FOR

Students in computer science, software developers, and anyone interested in understanding number systems and data representation in computing.

bergausstein
Messages
191
Reaction score
0
We are asked to convert the octal number 421(base 8) to nibble, byte, word and long word. Please help me how to go about it. I know that a nibble is half-byte wihich has 4 bits in it. But to cconvert an octal number to nibble is something I don't know how to do please help me. Thanks.
 
Technology news on Phys.org
How many bits does it take to store each digit of an octal number?
 
Hi markfl! digits in octal take 3 bits.
 
bergausstein said:
Hi markfl! digits in octal take 3 bits.

Correct, since each octal digit can take one of 8 values (0-7) and $8=2^3$. So, a 3 digit octal number will require 9 bits, which means how many nibbles will be required?
 
MarkFL said:
Correct, since each octal digit can take one of 8 values (0-7) and $8=2^3$. So, a 3 digit octal number will require 9 bits, which means how many nibbles will be required?

It will take 2 nibbles a 1 bit?

So, 4 = 100, 2 = 010 , 1 = 001. In binary, 100010001.

In nibbles, 1 0001 0001. Is this correct?
 
bergausstein said:
It will take 2 nibbles a 1 bit?

So, 4 = 100, 2 = 010 , 1 = 001. In binary, 100010001.

In nibbles, 1 0001 0001. Is this correct?

I am assuming we cannot have "partial nibbles" so we would need $$\left\lceil\frac{9}{4}\right\rceil=3$$ nibbles:

0001 0001 0001

How about the other data types?
 
MarkFL said:
I am assuming we cannot have "partial nibbles" so we would need $$\left\lceil\frac{9}{4}\right\rceil=3$$ nibbles:

0001 0001 0001

How about the other data types?

In bytes 00000001 00010001


In word 0000000100010001

In long word 00000000000000000000000100010001

Are my answers correct?
 
bergausstein said:
In bytes 00000001 00010001


In word 0000000100010001

In long word 00000000000000000000000100010001

Are my answers correct?

Yes, I agree with your answers. (Yes)
 

Similar threads

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