Lecture 2 games

The Negative Number Machine

How do you store a minus sign in bits?

Your mission

Computers only have 0s and 1s, so they need clever tricks to store negative numbers. Feed numbers into the machine and watch it turn them into signed magnitude, one's complement and two's complement. Then hunt down the mystery of the two zeros.