Binary Kalkulator
MatematikaBinary Kalkulator
Binary is the foundation of digital systems, encoding data as 0s and 1s. This Binary Kalkulator converts between decimal and binary, performs addition (and optionally bitwise operations), and shows bit-length — essential for computer science students, embedded developers, and anyone learning how CPUs represent integers and flags.
Cara menggunakan
- Enter a decimal integer to see binary representation.
- Or enter a binary string to convert to decimal.
- Add two binary numbers with carry propagation.
- View bit width (e.g., 8-bit, 16-bit) for overflow awareness.
- Validate that binary input contains only 0 and 1.
Matematika / Logika di baliknya
Decimal to binary: repeated division by 2 recording remainders. Binary to decimal: sum of bit × 2^position. Addition follows same carry rules as base 10 with digits 0–1 only.
Contoh nyata
- 13 decimal = 1101 binary.
- 1111 binary = 15 decimal.
- 1101 + 1011 = 11000 binary (13 + 11 = 24).
FAQ
Does this handle fractions?
Integer conversion is standard; fractional binary uses radix point and repeating expansions separately.
What about two's complement?
Signed integers use two's complement in fixed bit widths; specify bit size for negative decimal encoding.
Why do leading zeros matter?
They indicate bit width in hardware registers (e.g., 00001101 vs 1101 in 8-bit context).
