Math, asked by aftab516, 11 months ago

Why do we use different number's system in Computer ? like, Binary, Octal and Hexa- decimal Why do we need to do this numbers!​

Answers

Answered by navneetsneha
4

When you want to store bits that represent data, the bits correspond one-to-one with binary digits (that's where "bit" comes from, even: "binary digit"). Binary is a pain to read or write, though. If you want the 8th bit set, that's 0b10000000. Was that 7 0's? Did I write 8 of them by accident? It's a lot more compact if you're used to reading it in hex: 0x80. You have to know that a hex digit represents 4 binary digits. "8" means the 4th bit, "4" means the 3rd, "2" is the 2nd, and "1" is the 1st.

 

If you're at all used to reading/writing hex, it's a lot easier than trying to look at the number in straight binary. For instance, here's a sample GUID: 25892e17-80f6-415f-9c65-7395632f0223.

 

Ugh. It's hard enough to read that and write it. Imagine saying it over the phone to someone: 2-5-8-9-2-e...

 

Now imagine it in binary: 0-0-1-0 - 0-1-0-1 - 1-0-0-0 - 1-0-0-1 - 0-0-1-0 - 1-1-1-0... (those are the same digits as in the hex example).

 

Octal follows the same pattern, but deals with 3 bits at a time. It has the advantage of not going outside of our numbers that we usually use for math, and the (bigger) disadvantage that 3 isn't a number we usually use. 32-bit and 64-bit numbers are more naturally represented in hex than in octal (since 32 or 64 divide by 4, but not 3).

Answered by simmikhan506
1

Step-by-step explanation:

computer is a electronic device it can not understand hindi , english it can easily understand its function ing language like binary,octal

Similar questions