Engineering
Mechanical calculator: carrying a number
Turn a stepped-drum calculator and watch decimal wheels add or subtract, including carry and borrow between columns.

Try this
Choose an input number and turn the crank. Set the cycle frequency to zero for manual turns. Try subtracting through zero.
The model and its limits
Exact four-digit arithmetic modulo 10000 with an illustrative stepped-drum mechanism. Gear forces and historical machine tolerances are not modelled.
Equations used in the module
Equations result_new = (result + sign operand) mod 10000


