Skip to main content

learn.howToCalculate

learn.whatIsHeading

Positional number systems use a base (radix). Base 10 (decimal): 0–9; Base 2 (binary): 0–1; Base 16 (hexadecimal): 0–9 and A–F. Computers operate in binary; hex is shorthand for binary in programming.

Hướng dẫn từng bước

  1. 1To decimal: digit × base^position, summed
  2. 2From decimal: repeatedly divide by base, collect remainders
  3. 3Each hex digit = exactly 4 binary bits

Ví dụ có lời giải

đầu vào
Binary 11111111
Kết quả
Decimal 255 · Hex FF · Octal 377
255 = 2⁸ − 1

Sẵn sàng để tính toán? Dùng thử Máy tính Number Base Converter miễn phí

Hãy tự mình thử →

Cài đặt