# unsigned int

The difference between*unsigned ints*and (signed)

*ints*, lies in the way the highest bit, sometimes refered to as the "sign" bit, is interpreted. With

*unsigned int*sign bit have no special value, hence number from 0 to 65535 can be represented.

```
unsigned int var = val;
```

```
unsigned int ledPin = 13;
```

When variables are made to exceed their maximum capacity they "roll over" back to their minimum capacitiy, note that this happens in both directions.
```
unsigned int x
x = 0;
x = x - 1; // x now contains 65535 - rolls over in neg direction
x = x + 1; // x now contains 0 - rolls over
```