Addition in Other Bases

written by Teresa Carrigan


Run model in your browser


Top

WHAT IS IT?

This model demonstrates addition in any base from two to sixteen. It also illustrates the concept of overflow.

Top

HOW IT WORKS

The arrow adds one column of digits at a time, starting with the right-most column. If the sum is too large to be a digit in that base, then the base is subtracted from the sum and the arrow carries a one to the next column. If the arrow holds a carry when all the columns are processed, then overflow occurs (assuming the number of digits is fixed).


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.