Input

Presets:

The token is an integer and may carry a + or − sign. No width is applied.

Digits are case-insensitive. Spaces and underscores are accepted as visual separators.

Fixed-Width Word Size

Digits are case-insensitive. Spaces and underscores are accepted as visual separators.

Result

35

Signed mathematical integer: “110101” is read as a base-2 integer and shown in base 16.

DECIMAL VALUE53
NORMALIZED INPUT11 0101

CS2100 Fixed-Width Signed Binary Interpretations (8-bit)

In digital hardware, registers have a strict bit width. The identical bit string can represent radically different numbers depending on the encoding scheme. Range and overflow must be evaluated against the chosen bit width.

Word Size: 8 bits

Unsigned Fixed-Width

[0, 255]
0011 0101
Hex: 0x35

Range: 0 to 2^N - 1. Does not support negative values.

Sign-Magnitude

[-127, +127]
0011 0101
Hex: 0x35

Symmetric range with redundant zero representations: +0 (all 0s) and -0 (MSB 1, rest 0s).

1's Complement

[-127, +127]
0011 0101
Hex: 0x35

Symmetric range with redundant zeros: +0 (all 0s) and -0 (all 1s). Negation is bitwise NOT.

2's Complement

CS2100 STANDARD
[-128, +127]
0011 0101
Hex: 0x35

Asymmetric range: min = -2^7 (-128), max = +2^7 - 1 (+127). Unique zero (all 0s).

Excess-127

BIASED
[-127, +128]
1011 0100
Hex: 0xB4

Biased representation: code = value + 127. Valid word: 0 to 2^8-1. Representable range: -127 to +128.

Interactive Bit Pattern Decoder (8-bit)

Enter any 8-bit binary pattern to compare its decimal value across all five interpretations simultaneously:

RepresentationInterpreted Decimal ValueDecoding Explanation
Unsigned128Unsigned value computed from base 2: 128.
Sign-Magnitude-0MSB is 1 and magnitude is 0: Negative Zero (-0).
1's Complement-127MSB is 1: bitwise inverted magnitude is 01111111 (127) → -127.
2's Complement-128MSB is 1: negative value = raw (128) - 2^8 (256) = -128.
Excess-127 (Biased)1Biased Excess-127: raw unsigned value 128 minus bias 127 (128 - 127) = 1.