DEV

Number Base Converter — Binary, Decimal, Hex

Binary, hexadecimal, octal — computer science में number system conversions daily ज़रूरत है। हमारा Number Base Converter instant conversion करता है सभी common bases के बीच।

Number Systems in Computing

  • Binary (Base 2): 0 और 1 — hardware का fundamental language
  • Octal (Base 8): Unix file permissions (chmod 755)
  • Decimal (Base 10): Human-friendly daily use
  • Hexadecimal (Base 16): Memory addresses, colors, hashes

Practical Examples

255 decimal = FF hex = 11111111 binary। CSS color #FF0000 = rgb(255,0,0) = pure red। Bitwise operations binary में समझना आसान होता है।

Bitwise Operations Visualization

AND, OR, XOR, NOT operations binary में visually देखें। Bit manipulation interviews में यह visualization बहुत helpful है।

Convert करें: Number Base Converter

अक्सर पूछे जाने वाले प्रश्न

Hexadecimal में letters A-F क्यों?

Base 16 में 16 digits चाहिए — 0-9 के बाद A=10, B=11, C=12, D=13, E=14, F=15 use किए जाते हैं।

Python में number bases कैसे handle करें?

0b prefix binary के लिए, 0o octal के लिए, 0x hex के लिए। Conversion: bin(255), oct(255), hex(255)।

Negative numbers binary में कैसे represent होते हैं?

Two's complement method use होती है — MSB (most significant bit) sign के लिए। Tool two's complement representation भी दिखाता है।