Computer में Number System क्या है? आसान भाषा में पूरी जानकारी
जब हम किसी Computer में 10, 25, 100 या 2026 जैसी संख्या लिखते हैं, तो हमें लगता है कि Computer भी इन numbers को उसी तरह समझता होगा जैसे हम समझते हैं। लेकिन असल में Computer numbers को हमारी तरह सीधे नहीं समझता। Computer के अंदर data को समझने और process करने के लिए एक खास Number System का इस्तेमाल किया जाता है।
हम इंसान सामान्य रूप से Decimal Number System का उपयोग करते हैं, जिसमें 0 से 9 तक कुल 10 digits होते हैं। वहीं Computer मुख्य रूप से Binary Number System पर काम करता है, जिसमें केवल 0 और 1 होते हैं। यही कारण है कि Computer Science में Number System एक बहुत जरूरी basic topic है।
अगर आप Class 8, 9, 10, 11 या Computer Science की पढ़ाई कर रहे हैं, तो Number System को अच्छी तरह समझना आगे के कई topics को आसान बना देता है। Binary, Decimal, Octal और Hexadecimal के साथ-साथ Number Conversion भी Computer exams और interviews में अक्सर पूछा जाता है।
Number System क्या है?
Number System वह तरीका है जिसके द्वारा numbers को कुछ निश्चित symbols या digits की मदद से लिखा और represent किया जाता है। हर Number System का एक Base या Radix होता है। Base यह बताता है कि उस Number System में कुल कितने अलग-अलग digits इस्तेमाल किए जाते हैं।
उदाहरण के लिए Decimal Number System का Base 10 है क्योंकि इसमें 0 से 9 तक 10 digits होते हैं। Binary का Base 2 है क्योंकि इसमें केवल 0 और 1 होते हैं।
एक आसान उदाहरण
मान लीजिए हमारे पास number 345 है। Decimal System में इसमें तीन digits हैं—3, 4 और 5। लेकिन इन digits की value केवल उनके अंक से तय नहीं होती, बल्कि उनकी position भी महत्वपूर्ण होती है।
345 को इस तरह समझ सकते हैं:
3 × 10² + 4 × 10¹ + 5 × 10⁰
= 300 + 40 + 5
= 345
इसी concept को Place Value कहा जाता है। अलग-अलग Number Systems में place value का आधार उनके Base पर निर्भर करता है।
Computer में Number System की जरूरत क्यों होती है?
Computer एक electronic machine है। इसके अंदर electronic circuits signals की दो basic स्थितियों को आसानी से represent कर सकते हैं—जैसे ON और OFF। इन्हीं को Computer में आमतौर पर 1 और 0 से represent किया जाता है।
इसलिए Computer के अंदर information को Binary form में store और process करना बहुत सुविधाजनक होता है। Text, image, video, audio और software files तक अंततः digital data के रूप में 0 और 1 में represent किए जाते हैं।
Human Input → Decimal/Data → Computer Processing → Binary → Output
0 1 0 1 1 0 1 0
Computer में मुख्य Number Systems
Computer Science में मुख्य रूप से चार Number Systems पढ़े जाते हैं:
- Decimal Number System — Base 10
- Binary Number System — Base 2
- Octal Number System — Base 8
- Hexadecimal Number System — Base 16
1. Decimal Number System
Decimal Number System वह Number System है जिसका इस्तेमाल हम रोजमर्रा की जिंदगी में करते हैं। इसमें कुल 10 digits होते हैं:
0, 1, 2, 3, 4, 5, 6, 7, 8 और 9
इसका Base 10 होता है, इसलिए इसे Base-10 Number System भी कहा जाता है।
उदाहरण
Number 572 को place value से लिखें:
5 × 10² + 7 × 10¹ + 2 × 10⁰
= 500 + 70 + 2 = 572
हमारे पैसे, उम्र, Mobile Number, marks और सामान्य calculations में Decimal System का इस्तेमाल होता है।
2. Binary Number System
Binary Number System Computer Science का सबसे महत्वपूर्ण Number System है। इसका Base 2 होता है और इसमें केवल दो digits होते हैं:
0 और 1
Binary के प्रत्येक digit को Bit कहा जाता है। Bit का पूरा नाम Binary Digit है। 8 Bits मिलकर सामान्यतः एक Byte बनाते हैं।
Binary का उदाहरण
Binary number 1011 को Decimal में बदलने पर:
1 × 2³ + 0 × 2² + 1 × 2¹ + 1 × 2⁰
= 8 + 0 + 2 + 1
= 11
इसलिए (1011)₂ = (11)₁₀।
Binary में 0 और 1 क्यों?
Computer circuits के लिए दो states को पहचानना comparatively आसान होता है। उदाहरण के लिए किसी electronic circuit की एक स्थिति को 1 और दूसरी स्थिति को 0 माना जा सकता है। इसी basic concept से digital computing की foundation तैयार होती है।
3. Octal Number System
Octal Number System का Base 8 होता है। इसमें 0 से 7 तक कुल 8 digits इस्तेमाल किए जाते हैं:
0, 1, 2, 3, 4, 5, 6 और 7
Octal में 8 और 9 valid digits नहीं हैं। इसलिए अगर कोई number 128 लिखा है और उसे Octal number बताया गया है, तो वह सही Octal representation नहीं होगा क्योंकि इसमें 8 मौजूद है।
Octal का उदाहरण
(157)₈ को Decimal में बदलने के लिए:
1 × 8² + 5 × 8¹ + 7 × 8⁰
= 64 + 40 + 7
= 111
4. Hexadecimal Number System
Hexadecimal Number System का Base 16 होता है। इसमें 0 से 9 तक digits और A से F तक letters इस्तेमाल किए जाते हैं।
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
यहाँ A का value 10, B का 11, C का 12, D का 13, E का 14 और F का 15 होता है।
Hexadecimal कहाँ उपयोग होता है?
Hexadecimal का इस्तेमाल programming और computing में कई जगह होता है। उदाहरण के लिए Memory Addresses, machine-level data और HTML/CSS Color Codes में hexadecimal values दिखाई देती हैं।
जैसे #FF0000 एक hexadecimal color code है, जिसे Web pages में red color represent करने के लिए इस्तेमाल किया जाता है।
चारों Number Systems में अंतर
| Number System | Base | Digits | Example |
|---|---|---|---|
| Binary | 2 | 0, 1 | 10101 |
| Octal | 8 | 0–7 | 157 |
| Decimal | 10 | 0–9 | 572 |
| Hexadecimal | 16 | 0–9, A–F | 2AF |
Number System Conversion क्या है?
एक Number System के number को दूसरे Number System में बदलने की प्रक्रिया को Number System Conversion कहते हैं। Computer Science में यह बहुत महत्वपूर्ण skill है।
सबसे ज्यादा पूछे जाने वाले conversions हैं:
- Binary to Decimal
- Decimal to Binary
- Decimal to Octal
- Octal to Decimal
- Decimal to Hexadecimal
- Hexadecimal to Decimal
- Binary to Octal
- Binary to Hexadecimal
Decimal से Binary में Conversion
Decimal number को Binary में बदलने के लिए बार-बार 2 से divide किया जाता है और remainder को note किया जाता है। अंत में remainders को नीचे से ऊपर की तरफ पढ़ा जाता है।
उदाहरण: 13 को Binary में बदलें
- 13 ÷ 2 = 6 remainder 1
- 6 ÷ 2 = 3 remainder 0
- 3 ÷ 2 = 1 remainder 1
- 1 ÷ 2 = 0 remainder 1
अब remainders को नीचे से ऊपर पढ़ेंगे:
1101
इसलिए (13)₁₀ = (1101)₂।
Binary से Decimal Conversion
Binary number को Decimal में बदलने के लिए हर digit को 2 की power से multiply किया जाता है।
उदाहरण:
(1101)₂
= 1×2³ + 1×2² + 0×2¹ + 1×2⁰
= 8 + 4 + 0 + 1
= 13
Binary, Octal और Hexadecimal का आसान संबंध
Binary से Octal conversion को तेज बनाने के लिए Binary digits को दाईं तरफ से 3-3 के groups में बांटा जा सकता है। इसी तरह Binary से Hexadecimal conversion में 4-4 bits के groups बनाए जाते हैं।
Binary → Octal
3 Bits = 1 Octal Digit
Example: 101 011 → 5 3 → 53₈
Binary → Hexadecimal
4 Bits = 1 Hexadecimal Digit
Example: 1010 1111 → A F → AF₁₆
Real-Life में Number System के उदाहरण
Number System केवल textbook का topic नहीं है। इसका इस्तेमाल technology की कई चीजों के पीछे होता है।
- Binary: Computer processing और digital data representation
- Decimal: User द्वारा सामान्य numbers का उपयोग
- Hexadecimal: Web color codes और low-level computing
- Octal: कुछ programming और computer systems में representation
Number System में होने वाली सामान्य गलतियाँ
- Base और digit को एक ही चीज समझ लेना।
- Octal में 8 या 9 को valid digit मान लेना।
- Hexadecimal में A–F की values याद न रखना।
- Binary conversion में remainders को गलत क्रम में पढ़ना।
- Power की calculation में गलती करना।
- Question में दिए गए base को ध्यान से न देखना।
Expert Tip
Conversion याद करने के बजाय उसका logic समझें। खासकर Decimal-to-Binary में division method और Binary-to-Decimal में place-value method अच्छी तरह practice कर लें। इससे नए numbers पर भी आप आसानी से answer निकाल पाएंगे।
Practical Exercise: खुद करके देखें
नीचे दिए गए questions को बिना calculator के solve करने की कोशिश करें:
- Decimal 10 को Binary में बदलें।
- Decimal 25 को Binary में बदलें।
- Binary 1010 को Decimal में बदलें।
- Binary 1111 को Decimal में बदलें।
- Octal 17 को Decimal में बदलें।
- Hexadecimal A को Decimal में बदलें।
- Hexadecimal 10 को Decimal में बदलें।
Number System पर MCQs
Question 1
Binary Number System का Base कितना होता है?
- A. 2
- B. 8
- C. 10
- D. 16
Answer: A. 2
Question 2
Octal Number System में कौन-सा digit valid नहीं है?
- A. 6
- B. 7
- C. 8
- D. 0
Answer: C. 8
Question 3
Hexadecimal में F की value क्या होती है?
- A. 14
- B. 15
- C. 16
- D. 10
Answer: B. 15
Question 4
Binary number 1010 का Decimal value क्या है?
- A. 8
- B. 9
- C. 10
- D. 12
Answer: C. 10
Quick Quiz
1. Decimal System का Base क्या है?
2. Binary में कितने digits होते हैं?
3. 1 Byte में कितने Bits होते हैं?
4. Hexadecimal में C की value क्या होती है?
5. Binary 111 का Decimal value क्या होगा?
Answers: 10, 2, 8, 12, 7.
Interview और Viva में पूछे जाने वाले Questions
- Number System क्या है?
Numbers को represent करने की एक व्यवस्थित पद्धति को Number System कहते हैं। - Computer Binary का उपयोग क्यों करता है?
Digital electronic circuits में दो basic states को represent करना आसान होता है, इसलिए 0 और 1 का उपयोग किया जाता है। - Binary का Base क्या है?
2. - Octal का Base क्या है?
8. - Hexadecimal का Base क्या है?
16. - Hexadecimal में A का क्या मतलब है?
A की value 10 होती है। - Bit क्या है?
Bit यानी Binary Digit, जिसकी value 0 या 1 हो सकती है। - 8 Bits को क्या कहते हैं?
एक Byte.
Number System के Short Notes
Number System: Numbers को represent करने की method.
Binary: Base 2, digits 0 और 1.
Octal: Base 8, digits 0 से 7.
Decimal: Base 10, digits 0 से 9.
Hexadecimal: Base 16, digits 0–9 और A–F.
Bit: Binary Digit.
Byte: 8 Bits.
Notes Tip: ऊपर दिए गए Short Notes और conversion examples को save करके revision notes की तरह इस्तेमाल किया जा सकता है। Exam से पहले Base, digits और conversion methods की एक बार practice जरूर करें।
Source Code: Decimal को Binary में बदलने का Python Program
अगर आप Programming सीख रहे हैं, तो Number System को code से भी समझ सकते हैं। नीचे एक simple Python program Decimal number को Binary में convert करता है:
number = int(input("Enter a decimal number: "))
binary = bin(number)[2:]
print("Binary:", binary)उदाहरण के लिए अगर input 13 है, तो output 1101 मिलेगा। Python में bin() function Decimal number को Binary representation में बदलने में मदद करता है।
FAQs: Number System से जुड़े सवाल
1. Number System क्या होता है?
Number System numbers को लिखने और represent करने का एक तरीका है। Decimal, Binary, Octal और Hexadecimal इसके प्रमुख प्रकार हैं।
2. Computer में Binary Number System क्यों इस्तेमाल होता है?
Computer की digital circuitry में दो basic states को represent करना सुविधाजनक होता है। इसलिए information को 0 और 1 के रूप में represent किया जाता है।
3. Binary Number System में कितने digits होते हैं?
Binary में केवल दो digits होते हैं—0 और 1। इसका Base 2 है।
4. Decimal और Binary में क्या अंतर है?
Decimal का Base 10 है और इसमें 0 से 9 तक digits होते हैं। Binary का Base 2 है और इसमें केवल 0 तथा 1 होते हैं।
5. Octal Number System में 8 क्यों नहीं लिखा जा सकता?
Octal का Base 8 है, इसलिए इसमें केवल 0 से 7 तक के digits valid होते हैं। 8 और 9 Octal के valid digits नहीं हैं।
6. Hexadecimal में A से F क्यों इस्तेमाल किए जाते हैं?
Hexadecimal में कुल 16 symbols चाहिए। 0 से 9 तक केवल 10 symbols मिलते हैं, इसलिए बाकी छह values यानी 10 से 15 के लिए A से F का उपयोग किया जाता है।
7. Binary 1000 का Decimal value क्या है?
1000₂ = 1×2³ + 0×2² + 0×2¹ + 0×2⁰ = 8। इसलिए इसका Decimal value 8 है।
8. Number System Computer Science के लिए इतना important क्यों है?
Computer data को digital form में process करता है। Binary representation, memory, data storage, programming और low-level computing जैसे topics को समझने के लिए Number System की basic knowledge जरूरी है।
निष्कर्ष
Number System Computer Science की उन basic concepts में से एक है जिसे शुरुआत में समझ लेना आगे की पढ़ाई काफी आसान बना देता है। सबसे पहले चार systems—Binary, Octal, Decimal और Hexadecimal—के Base और valid digits को याद रखें। इसके बाद Number Conversion की practice करें।
खास तौर पर Binary और Decimal के बीच conversion को अच्छी तरह सीखना फायदेमंद रहेगा। जब आप 0 और 1 के पीछे छिपे place-value logic को समझ जाते हैं, तो Binary numbers डरावने नहीं लगते।
अगर इस topic को पढ़ने के बाद आप अपने तरीके से कुछ Binary और Decimal conversions solve करते हैं, तो concept और भी मजबूत हो जाएगा। अपने answers या किसी सवाल को comment में share कर सकते हैं।

टिप्पणियाँ
एक टिप्पणी भेजें