home     Java main page       Search this site      

The Unbound Calculator applet    



About the applet:

    Introduction
    Buttons and status fields
    Keyboard shortcuts

Introduction

This applet was designed to do calculations with arbitrarily long numbers. This is an
0.001 version, and the results it outputs should not be taken at face value - it seems to work, though.
Also binary and hexadecimal operations are extremely slow.

The applet uses the same algorithms for small and large numbers. I.e. when it calcualtes 2+2 it goes through the same steps as when adding 9855986345213854 and 5788968634287643984. I know that I could just use the hardware given operations for small numbers, but it is much easier to test the applet when the algorithms it uses don't depend on the actual numbers.
 

  • Calculations are stopped by any action performed.
  • Binary numbers are represented as two's complement.

 

Buttons and status fields:


  • Bottom status field: Displays status information. It indicates if a calculation is in progress - you stop a calculation by pressing any button (or valid key). It also indicates invalid operations - e.g. division by 0 or use of negative hexadecimal numbers.
  • Weight status field : Shows the weight of the selected character in the display (or the character to the right of the cursor). E.g. in "0110", the second '1' from the left carries the weight 2, meaning that if it's a binary number, this character adds 1*(2^2) to the number. If it's a decimal number, it adds 1*(10^2) to the number. In 56346, '5' adds 5*(10^4) to the number.
  • MS: Store the currently displayed number ( Memory Store )
  • MR: Recall the stored number ( Memory Recall )
  • MC: Clear memory ( Memory Clear )
  • C: reset - clears calculator
  • CE: clear - clears the display
  • Mod: modulus

 
 

Keyboard shortcuts



NB! You need to move focus to the applet (by clicking it somewhere) to use the shortcuts.


key  function   key function
0-9 0-9   a-f a-f
+ + Backspace  Delete character before 
caret position - move focus to
display to use this
- - Enter =
* * Escape C
/ / Delete CE
% Mod F9 +/-
@ x^2 y x^y



     home     Java main page       Search this site