Understanding your calculation
Method, example and limitations
How the calculation works
Binary is base two, so each place has a value that is a power of two. Arithmetic carries when a column reaches two.
Example to check
Binary 1011 equals 8 + 2 + 1 = decimal 11. Binary 101 + 11 equals 1000.
Before using the result
Leading zeros do not change an unsigned value. Signed integers, bit width and two’s-complement interpretation require explicit conventions.