Number Conversion क्या है? आसान हिंदी में समझें

 

Number Conversion क्या है? Number System को एक-दूसरे में Convert करने का आसान तरीका

number-conversion-kya-hai

Computer Science में Number Conversion एक बहुत important topic है। शुरुआत में जब Binary, Decimal, Octal और Hexadecimal जैसे नाम सामने आते हैं, तो कई students को लगता है कि ये बहुत मुश्किल calculation है। लेकिन असल में Number Conversion कुछ fixed rules पर काम करता है। एक बार ये rules समझ आ जाएं तो किसी भी number को एक Number System से दूसरे Number System में आसानी से बदला जा सकता है।

मान लीजिए आपके पास Decimal number 25 है और आपको इसे Binary में बदलना है। इसका answer 11001 होगा। इसी तरह Binary number को Decimal, Octal या Hexadecimal में भी convert किया जा सकता है। Computer Science, Programming, Digital Electronics और competitive exams में ऐसे सवाल अक्सर देखने को मिलते हैं।

इस article में Number Conversion को बिल्कुल basic level से समझेंगे और साथ में examples, conversion methods, shortcuts, MCQs और practical exercises भी देखेंगे।

Number Conversion क्या है?

Number Conversion का मतलब है किसी number को एक Number System से दूसरे Number System में बदलना, जबकि उसकी actual value वही रहती है।

उदाहरण के लिए Decimal में 10 और Binary में 1010 देखने में अलग हैं, लेकिन दोनों की numerical value समान है। इसलिए हम कह सकते हैं कि Decimal 10 का Binary representation 1010 है।

Computer internally data को मुख्य रूप से Binary यानी 0 और 1 के रूप में process करता है, जबकि humans के लिए Decimal system ज्यादा आसान है। इसी वजह से अलग-अलग Number Systems के बीच conversion की जरूरत पड़ती है।

Number System कितने प्रकार के होते हैं?

Computer Science में मुख्य रूप से चार Number Systems पढ़े जाते हैं:

  • Decimal Number System – Base 10
  • Binary Number System – Base 2
  • Octal Number System – Base 8
  • Hexadecimal Number System – Base 16
Number System Base Digits Example
Binary 2 0, 1 10101
Octal 8 0–7 245
Decimal 10 0–9 725
Hexadecimal 16 0–9, A–F 2AF

Base का क्या मतलब होता है?

किसी Number System का Base यह बताता है कि उस system में कितने अलग-अलग digits इस्तेमाल होते हैं।

Decimal का Base 10 है क्योंकि इसमें 0 से 9 तक कुल 10 digits होते हैं। Binary का Base 2 है क्योंकि इसमें केवल 0 और 1 होते हैं। Hexadecimal का Base 16 है क्योंकि इसमें 0–9 के साथ A, B, C, D, E और F का इस्तेमाल किया जाता है।

Hexadecimal Values:
A = 10   B = 11   C = 12   D = 13   E = 14   F = 15

Number Conversion की जरूरत क्यों पड़ती है?

Number Conversion केवल exam का topic नहीं है। इसका practical use Computer और Technology में भी काफी है।

  • Computer Binary numbers पर काम करता है।
  • Programming में different Number Systems की जरूरत पड़ती है।
  • Digital Electronics में Binary और Hexadecimal का उपयोग होता है।
  • Memory address और machine-level information समझने में मदद मिलती है।
  • Web development में Hexadecimal colors जैसे #FF0000 का इस्तेमाल होता है।
  • Competitive exams में Number System से questions पूछे जाते हैं।

Decimal से Binary Conversion

Decimal number को Binary में convert करने के लिए सबसे common method है Repeated Division by 2। इसमें number को बार-बार 2 से divide किया जाता है और हर बार remainder note किया जाता है। अंत में remainders को नीचे से ऊपर पढ़ने पर Binary number मिलता है।

Example: Decimal 25 को Binary में बदलें

  1. 25 ÷ 2 = 12, remainder 1
  2. 12 ÷ 2 = 6, remainder 0
  3. 6 ÷ 2 = 3, remainder 0
  4. 3 ÷ 2 = 1, remainder 1
  5. 1 ÷ 2 = 0, remainder 1

अब remainders को नीचे से ऊपर पढ़ेंगे:

11001

इसलिए:

(25)10 = (11001)2

Decimal → Binary

25 → 12 → 6 → 3 → 1 → 0
↓    ↓    ↓    ↓    ↓
1    0    0    1    1

Answer: 11001

Binary से Decimal Conversion

Binary से Decimal conversion में प्रत्येक digit को 2 की power से multiply किया जाता है। Right side से power 0 शुरू होती है।

Example: Binary 11001 को Decimal में बदलें

Binary number है 11001

Calculation:

1 × 24 + 1 × 23 + 0 × 22 + 0 × 21 + 1 × 20

= 16 + 8 + 0 + 0 + 1

= 25

इसलिए (11001)2 = (25)10

Decimal से Octal Conversion

Decimal को Octal में बदलने के लिए number को बार-बार 8 से divide किया जाता है। Remainders को नीचे से ऊपर पढ़ने पर Octal answer मिलता है।

Example: Decimal 83 को Octal में बदलें

  1. 83 ÷ 8 = 10, remainder 3
  2. 10 ÷ 8 = 1, remainder 2
  3. 1 ÷ 8 = 0, remainder 1

Remainders को नीचे से ऊपर पढ़ें:

123

अर्थात:

(83)10 = (123)8

Octal से Decimal Conversion

Octal number को Decimal में convert करने के लिए प्रत्येक digit को 8 की power से multiply किया जाता है।

उदाहरण के लिए (123)8:

1 × 82 + 2 × 81 + 3 × 80

= 64 + 16 + 3

= 83

Decimal से Hexadecimal Conversion

Decimal से Hexadecimal conversion के लिए number को बार-बार 16 से divide किया जाता है। यहां remainder 10 से 15 तक आने पर letters का इस्तेमाल होता है।

Decimal Hexadecimal
10A
11B
12C
13D
14E
15F

Example: Decimal 254 को Hexadecimal में बदलें

  1. 254 ÷ 16 = 15, remainder 14 = E
  2. 15 ÷ 16 = 0, remainder 15 = F

Remainders को नीचे से ऊपर पढ़ने पर FE मिलेगा।

अर्थात:

(254)10 = (FE)16

Hexadecimal से Decimal Conversion

Hexadecimal number को Decimal में बदलते समय 16 की powers इस्तेमाल होती हैं। पहले letters को उनके Decimal values में बदलना जरूरी है।

Example: Hexadecimal 2F को Decimal में बदलें

यहां F = 15 है।

2 × 161 + 15 × 160

= 32 + 15

= 47

इसलिए (2F)16 = (47)10

Binary से Octal Conversion

Binary को Octal में convert करने का सबसे आसान तरीका है Binary digits को right side से 3-3 के group में बांटना।

Example: 101101 को Octal में बदलें

Binary number को group करें:

101 | 101

अब प्रत्येक group को Decimal value में बदलें:

  • 101 = 5
  • 101 = 5

इसलिए answer होगा 55

(101101)2 = (55)8

Binary से Hexadecimal Conversion

Binary से Hexadecimal conversion भी आसान है। इसमें Binary digits को right side से 4-4 के group में बांटते हैं।

Example: Binary 10101111

Grouping करें:

1010 | 1111

1010 = A और 1111 = F

इसलिए:

(10101111)2 = (AF)16

Number Conversion का आसान Diagram

Number Conversion Map

Decimal ⇄ Binary

↓          ↓

Octal ⇄ Hexadecimal

एक useful shortcut याद रखें:

  • Binary ↔ Octal = 3 bits का group
  • Binary ↔ Hexadecimal = 4 bits का group
  • Decimal → Binary = 2 से division
  • Decimal → Octal = 8 से division
  • Decimal → Hexadecimal = 16 से division

Number Conversion में होने वाली Common Mistakes

Students अक्सर calculation से ज्यादा छोटी-छोटी गलतियों के कारण answer गलत कर देते हैं। इन बातों का ध्यान रखें:

  • Binary में कभी भी 2, 3, 4 जैसे digits नहीं होने चाहिए।
  • Octal में 8 और 9 valid digits नहीं हैं।
  • Hexadecimal में A–F की values याद रखें।
  • Decimal conversion में powers हमेशा right side से 0 से शुरू करें।
  • Repeated division में final answer remainders को bottom-to-top पढ़कर बनता है।
  • Binary से Octal में 3-bit grouping और Hexadecimal में 4-bit grouping करें।

Exam के लिए Key Points

  • Binary का Base = 2
  • Octal का Base = 8
  • Decimal का Base = 10
  • Hexadecimal का Base = 16
  • Binary में केवल 0 और 1 होते हैं।
  • Octal में 0 से 7 तक digits होते हैं।
  • Hexadecimal में 0–9 और A–F होते हैं।
  • 1 Octal digit = 3 Binary bits
  • 1 Hexadecimal digit = 4 Binary bits

Practical Exercise

नीचे दिए गए questions को पहले खुद solve करने की कोशिश करें:

  1. Decimal 18 को Binary में convert करें।
  2. Decimal 64 को Octal में convert करें।
  3. Decimal 255 को Hexadecimal में convert करें।
  4. Binary 10010 को Decimal में convert करें।
  5. Binary 11111111 को Hexadecimal में convert करें।

Answers

  • 18 = 100102
  • 64 = 1008
  • 255 = FF16
  • 10010 = 1810
  • 11111111 = FF16

Number Conversion के लिए छोटा JavaScript Program

अगर आप Programming सीख रहे हैं तो JavaScript में Number Conversion बहुत आसानी से किया जा सकता है। उदाहरण के लिए:


let decimal = 25;

console.log(decimal.toString(2));  // Binary
console.log(decimal.toString(8));  // Octal
console.log(decimal.toString(16)); // Hexadecimal

यहां toString(2) number को Binary, toString(8) Octal और toString(16) Hexadecimal representation में बदलता है।

Interview Questions on Number Conversion

  1. Binary Number System का Base क्या है?
    उत्तर: 2
  2. Octal Number System में कितने digits होते हैं?
    उत्तर: 8 digits, यानी 0 से 7 तक।
  3. Hexadecimal में F की value क्या होती है?
    उत्तर: 15
  4. Binary 1010 का Decimal value क्या है?
    उत्तर: 10
  5. Decimal 16 का Binary क्या होगा?
    उत्तर: 10000
  6. Binary से Hexadecimal conversion में कितने bits का group बनाया जाता है?
    उत्तर: 4 bits
  7. Binary से Octal conversion में कितने bits का group बनाया जाता है?
    उत्तर: 3 bits

MCQ: Number Conversion Questions

1. Binary Number System का base क्या है?

  • A) 2
  • B) 8
  • C) 10
  • D) 16

Answer: A) 2

2. Decimal 15 का Hexadecimal representation क्या है?

  • A) E
  • B) F
  • C) 10
  • D) 15

Answer: B) F

3. Binary 1111 का Decimal value क्या है?

  • A) 12
  • B) 13
  • C) 14
  • D) 15

Answer: D) 15

4. Octal Number System का base कितना है?

  • A) 2
  • B) 8
  • C) 10
  • D) 16

Answer: B) 8

Quick Quiz

बिना ऊपर देखे इन सवालों के जवाब दें:

  1. Decimal 10 को Binary में कैसे लिखेंगे?
  2. Hexadecimal में C की Decimal value कितनी है?
  3. Binary से Octal में कितने bits का group बनता है?
  4. Decimal 16 का Hexadecimal क्या होगा?
  5. Binary 100000 का Decimal value क्या है?

Quiz Answers: 1010, 12, 3 bits, 10 और 32.

PDF Notes के लिए Important Revision Points

Number Conversion Revision:

Binary → Base 2 → 0,1

Octal → Base 8 → 0–7

Decimal → Base 10 → 0–9

Hexadecimal → Base 16 → 0–9,A–F

Decimal → दूसरे system: बार-बार base से divide करें।

दूसरे system → Decimal: positional powers का इस्तेमाल करें।

Binary → Octal: 3-bit grouping.

Binary → Hexadecimal: 4-bit grouping.

FAQs: Number Conversion से जुड़े सवाल

1. Number Conversion क्या होता है?

किसी number को उसकी value बदले बिना एक Number System से दूसरे Number System में represent करना Number Conversion कहलाता है। जैसे Decimal 10 को Binary में 1010 लिखा जाता है।

2. Number Conversion में कौन-कौन से Number Systems पढ़े जाते हैं?

Computer Science में मुख्य रूप से Binary, Octal, Decimal और Hexadecimal Number Systems पढ़े जाते हैं। इनके bases क्रमशः 2, 8, 10 और 16 हैं।

3. Decimal को Binary में convert करने का सबसे आसान तरीका क्या है?

Decimal number को लगातार 2 से divide करें और हर बार remainder लिखें। जब quotient 0 हो जाए तो remainders को नीचे से ऊपर पढ़ें। यही Binary answer होगा।

4. Binary को Decimal में कैसे convert करते हैं?

Binary digits को right से left की तरफ 2 की powers से multiply किया जाता है। सबसे right digit की power 0 होती है और हर अगली position पर power एक बढ़ जाती है।

5. Hexadecimal में A, B, C, D, E और F क्यों इस्तेमाल होते हैं?

Hexadecimal का base 16 है, इसलिए इसमें 16 symbols चाहिए। 0 से 9 तक 10 symbols मिलने के बाद बाकी छह values के लिए A से F तक letters इस्तेमाल किए जाते हैं। A की value 10 और F की value 15 होती है।

6. Binary से Hexadecimal conversion आसान क्यों है?

क्योंकि 16 = 24 है। इसलिए Binary number को 4-4 bits के groups में बांटकर हर group को एक Hexadecimal digit में बदला जा सकता है।

7. क्या Number Conversion केवल Computer students के लिए जरूरी है?

नहीं। इसका उपयोग Digital Electronics, Programming, Computer Architecture और कई competitive exams में होता है। Basic Computer knowledge रखने वाले students के लिए भी इसकी जानकारी उपयोगी है।

8. Number Conversion सीखने का सबसे अच्छा तरीका क्या है?

केवल formulas याद करने के बजाय रोज कुछ numbers खुद convert करें। पहले Decimal-Binary पर practice करें, फिर Octal और Hexadecimal जोड़ें। जब तक calculation हाथ से करने की आदत नहीं बनेगी, तब तक topic थोड़ा confusing लग सकता है।

निष्कर्ष

Number Conversion को समझने का सबसे आसान तरीका है Number Systems के Base और conversion rules को अच्छी तरह समझना। Decimal से किसी दूसरे system में जाते समय repeated division काफी useful है, जबकि Binary, Octal और Hexadecimal के बीच conversion में grouping method calculation को बहुत आसान बना देता है।

शुरुआत में 5–10 questions रोज solve करने से यह पूरा topic काफी comfortable हो जाता है। खासकर SSC, CGL, Banking, Computer exams और technical interviews की तैयारी कर रहे students को Binary, Decimal, Octal और Hexadecimal conversion की अच्छी practice जरूर करनी चाहिए।

अगर आपको Number Conversion से जुड़ा कोई सवाल या कोई ऐसा example मिला है जिसे solve करने में परेशानी हो रही है, तो उसे comment में लिख सकते हैं।

टिप्पणियाँ