# Signed vs. Unsigned Numbers

Was also learning more about this at Ericsson.

- In a signed representation, the largest number is $2_{nβ1}β1$ . The next number after $2_{nβ1}β1$ is $β2_{nβ1}$ (the largest negative number)
- I.e. go from $01111111$ (largest positive number) to $10000000$ (largest negative number)

- In an unsigned representation, the largest number is $2_{n}β1$. The next number after $2_{n}β1$ is $0$.
- i.e. go from $11111111$ to $00000000$

Donβt believe me? The Source of Truth is code right. Consider the following code:

Notice that unsigned can give a bigger number because you have that additional bit that would otherwise be used to represent the negative sign for the signed numbers.

To understand how to read /write these signed numbers, see Complement.