2Calc is a twos complement calculator. Rather than using conventional "decimal" math, it implements the twos complement math used internally in most computers. The app allows you to perform the following operations:
- addition
- subtraction
- multiplication
- division
- logical AND
- logical OR
- logical XOR
- logical NOT
- logical left and right shift (including sign extension on signed values)
Overflow and divide by zero operations are detected and reported by the app.
The app supports word sizes of 8, 16, 32 and 64 bits, and includes support for both signed and unsigned values. Numbers can be represented in binary, octal, decimal and hexadecimal.
2Calc has a simple single-value memory to store values, as well as a history of up to 100 operations. The current value can be copied to the pasteboard, and numeric values can be pasted into the calculator. The history entries can be copied to the pasteboard as well (with a press and hold to get the copy menu).