Counting in Other Number Bases

written by Teresa Carrigan

Run model in your browser



Modify the model to show fixed point representation; that is, specify a given number of digits to the right of the decimal place.

Modify the model so that it counts correctly if the initial number is negative.

Make a "count backwards" model that starts from a large number and decrements instead of incrementing.

Allow the user to input a starting digit pattern.

Allow the user to input a decimal number, and then display the corresponding digit pattern.



"sum values-from patches" is used to easily add all the current value of each patch.

The startup procedure is used to automatically call setup when the program is opened.

"to-report" is used to read the binary number off the patches, and to add commas to a string of bits.

"foreach" is used in converting input to upper case.




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.