calc(1)

NAME
calc -- a simple popup calculator

DESCRIPTION
The calc macro is a simple popup calculator which performs integer arithmetic, together with base conversions. The calculator window looks like a normal pocket calculator. Features of the calculator are:
    - Supports 32 bit integers
    - Supports AND, OR, XOR and NOT
    - 10 number memory.
    - Easy to use base conversions.

The calculator display has two main areas - the top line which contains the value of the current expression, and a base indicator. The base indicator (DEC, OCT or HEX) appears to the left of the line. This is the base that numbers may be typed in and the base that results are displayed in.

Numbers may be typed in using the keys: 0-9 and a-f (for hex numbers). The following operators are supported:
    + 32 bit addition
    - 32 bit subtraction
    * 32 bit multiplication
    / 32 bit division
    % 32 bit remainder
    A 32 bit logical AND
    R 32 bit logical OR
    X 32 bit logical XOR

The following unary operators may be used:
    S changes sign of number on display.
    N 1's complement of number on display.

The following base conversions are available:
    H change base to hex
    O change base to octal
    D change base to decimal

In addition the calculator has a 10-number memory. The memories are accessed via the following key sequences:
     rN recall memory N
     sN store number on display in memory N

where N is a digit (0-9) representing the memory. The calculator macro prompts the user for the memory number after the 'r' and 's' commands.

Pressing 'C' clears the calculator accumulator.

MENU/KEYS
The calculator is available from the features menu, or by typing calc at the command prompt.

SEE ALSO
hpcalc (an RPN based calculator supporting floating point).

BUGS
This calculator does not currently support floating point. It would be nice to have a popup help window to make it easier to use.