Convertitore Basi Numeriche — Formula
Number Base Conversion
Method: Repeated Division
To convert decimal to base b: 1. Divide n by b, record the remainder 2. Replace n with the quotient 3. Repeat until n = 0 4. Read remainders from bottom to top
Common Bases
Esempio Risolto
Analyze the number 255 in different bases.
- 255 in binary: 11111111 (8 binary digits)
- 255 in octal: 377 (last digit: 255 mod 8 = 7)
- 255 in hex: FF (last digit: 255 mod 16 = 15 = F)
- Bits needed: floor(log2(255))+1 = 8