Every function in the Calculator application has a keyboard equivalent associated with it. Table 8-1 lists each Calculator function with its keyboard equivalent. See the manual page for calctool for a more complete description of each function. The manual page for calctool also lists Calculator command line options and various resources that can be set in your .Xdefaults or .desksetdefaults files.
Keyboard equivalents listed in brackets indicate a choice of options. For example, the keyboard equivalent for the Disp function is D [e, f, s]. This means that you can enter De, Df, or Ds. Similarly, the Exch function keyboard equivalent is F [0-9], which means you can enter F0, F1, F2, etc. through F9.
Table 8-1 Calculator Function Keyboard Equivalents
|
Function |
Keyboard Equivalent |
Description |
---|---|---|---|
Number Manipulation Operators |
Int |
Control-i |
Integer portion of current entry |
|
Frac |
Control-f |
Fractional portion of entry |
|
Abs |
Control-u |
Absolute value of current entry |
|
+/- |
C |
Change arithmetic sign |
|
1/x |
r |
1 divided by current entry |
|
x^2 |
@ |
Square of current entry |
|
% |
% |
Percentage using current entry and next entry |
|
Sqrt |
s |
Square root |
|
Asc |
Control-a char |
Displays ASCII value of character typed after Control-a |
Menu Operators
|
Base |
B [b,o,d,h] |
Change the base to binary [b], octal [o], decimal [d], or hexadecimal [h] |
|
Disp |
D [e,f,s] |
Change display mode to engineering [e], fixed point [f], or scientific [s] |
|
Mode |
M [b,f,l,s] |
Change calculator mode to default basic mode [b], or to financial [f], logical [l], or scientific [s] mode |
|
Acc |
A[0-9] |
Set display accuracy to 0 through 9 significant digits |
|
Con |
# [0-9] (defaults) |
Display a constant value. The constants are labeled from 0 through 9 and can be defined by entries in the .calctoolrc file. Default values are: 0 - 0.621 (kms per hour / mph) 1 - 1.41421 (square root of 2) 2 - 2.71828 (e) 3 - 3.14159 (pi) 4 - 2.54 (cms / inch) 5 - 57.2958 (degrees in radian) 6 - 1048576.0 (2 to power of 20) 7 - 0.0353 (gms / oz) 8 - 0.948 (kilojoules /thermals) 9 - 0.0610 (cubic cms /cubic in) |
|
Fun |
F[0-9] |
Execute a function. There are 10 functions, labeled 0 through 9, taken from .calctoolrc. |
|
Rcl |
R[0-9] |
Retrieve value in memory register. There are 10 memory registers, labeled 0 through 9 |
|
Sto |
S[0-9] |
Store value in memory register 0 through 9 |
|
Exch |
X[0-9] |
Exchange current entry with contents of memory register 0 through 9 |
Other Operations |
Clr |
Delete |
Clear calculator display |
|
Bsp |
Back Space |
Delete rightmost character and recalculate |
|
(and) |
(and) |
Set arithmetic precedence |
|
Exp |
E |
Turn current entry into scientific notation mantissa. Next entry becomes exponent. |
|
Keys |
k |
Toggle labels on calculator buttons between mouse and keyboard equivalents |
|
Mem |
m |
Display window showing 10 memory register values |
|
Quit |
q or Q |
Exit Calculator |
Financial Mode Operations
|
Ctrm |
Control-t |
Compounding term |
|
Ddb |
Control-d |
Double-declining depreciation |
|
Fv |
v |
Future value |
|
Pmt |
P |
Periodic payment |
|
Pv |
p |
Present value |
|
Rate |
Control-r |
Periodic interest rate |
|
Sln |
Control-s |
Straight-line depreciation |
|
Syd |
Control-y |
Sum-of-the-years`-digits depreciation |
Logical Mode Operations |
Term |
T |
Payment period |
|
< |
< |
Shift current entry left |
|
> |
> |
Shift current entry right |
|
&16 |
[ |
Truncate to 16-bit unsigned integer |
|
&32 |
] |
Truncate to 32 bit unsigned integer |
|
Or |
| |
Logical OR of current and next entries |
|
And |
& |
Logical AND of current and next entries |
|
Not |
~ |
Logical NOT of current entry |
|
Xor |
^ |
Logical XOR or current and next entries |
Scientific Mode Operations |
Xnor |
n |
Logical XNOR of current and next entries |
|
Trig |
T[d,g,r] |
Set trigonometrical base to degrees [d], gradians [g], or radians [r] |
|
Hyp |
h |
Toggle hyperbolic function indicator |
|
Inv |
i |
Toggle inverse function indicator |
|
e^x |
{ |
e raised to the power of current entry |
|
10^x |
} |
10 raised to the power of current entry |
|
y^x |
y |
Current entry raised to power of next entry |
|
x! |
! |
Factorial of current entry |
|
Cos |
Control-c |
Cosine of current entry |
|
Sin |
Control-s |
Sine of current entry |
|
Tan |
Control-t |
Tangent of current entry |
|
Ln |
N |
Natural logarithm of current entry |
|
Log |
G |
Base 10 logarithm of current entry |
|
Rand |
? |
Random number from 0.0 through 1.0 |
|
|
|
|