# B-adic representation visualised: convert to any base

> Interactive b-adic representation: Horner conversion with fine-grained division and remainder steps, polynomial form, switch between any bases 2..36.

Address: https://marckimmel.de/en/informatik/zahlenkodierungen/b-adisch
Deutsche Fassung: https://marckimmel.de/informatik/zahlenkodierungen/b-adisch.md

Converts numbers between bases (binary, octal, decimal, hex) using the Horner method.

The Horner method efficiently computes the B-adic representation of a decimal number: repeated integer division by B produces, bottom up, the digits. Example: 185 div 8 = 23 r 1, 23 div 8 = 2 r 7, 2 div 8 = 0 r 2, so 185 = (271)_8. Decoding sums digits times powers of B.

Useful in low-level programming (hex for addresses, bitmasks, colour codes) and when reading memory or machine code.

## Related

- [Number Encodings](https://marckimmel.de/en/informatik/zahlenkodierungen.md)
