Signed Integer Representation Model

written by Crystal Barchet and Teresa Carrigan


Run model in your browser


Top

THINGS TO NOTICE

The answer will always have eight bits.

Padding is done before inverting or adding one.

If the decimal number is positive, then all three formats give the same bit pattern, and the left-most bit of the answer will be zero.

If the decimal number is negative, then the three formats will give different bit patterns, but in each case the left-most bit of the answer will be one.

Top

THINGS TO TRY

Set slow-motion to 0.5, select random format, click setup, and then click go.

Set the format to a type you wish to drill, and set random-format off. Click setup. Work each step by hand, and then click the step button to check your answer.


Home

Applets on this website were written by Teresa Carrigan in 2004, for use in computer science courses at Blackburn College, with the exception of the Fireworks applet. The applets made with NetLogo require Java 1.4.1 or higher to run. The applets made with NetBeans require Java 1.4.2 or higher to run. Applets might not run on Windows 95 or Mac OS 8 or 9. You may obtain the latest Java plugin from Sun's Java site.