1 .\" $XConsortium: dtcalc.man /main/2 1995/07/17 10:50:28 drk $
2 .TH DTCALC 1X "" "" "" ""
6 \fBdtcalc \(em The Common Desktop Environment Calculator.\fP
10 [-a accuracy] [-m mode] [-b numeric_base] [-notation display_notation]
11 [-trig trigonometric_type] [-session session_file] [-no_menu_bar]
14 The \fIDtcalc\fP program is a calculator for use within the Common
15 Desktop Environment. It provides an easy to use interface designed to
16 give access to common arithmetic and financial calculations.
18 The calculator is designed to operate in much the same way as many
19 hand-held calculators. It provides three modes of operation: scientific,
20 financial, and logical. The default operation is scientific, but with
21 the easy to use GUI changing to the modes of operation are easy. When
22 the operation mode is changed, a number of the keys change for the new
29 \fIDtcalc\fP defines a number of command-line options which allow the user
30 to configure how the calculator displays itself. Command-line options have a
31 higher precedence then resources. By using command-line options
32 a user can override anything specified in a resource file.
33 .IP "\fB-a \fP\fI<accuracy>\fP"
35 This is the initial number of digits displayed after the numeric point.
36 This value must be in the range 0 to 9. The default value is 2.
37 .IP "\fB-m \fP\fI<mode>\fP"
39 This determines which mode the calculator will display itself in.
40 There are three modes of operation: scientific, financial, or logical.
41 Some of the calculator keys change when it changes between different
43 .IP "\fB-b \fP\fI<numeric_base>\fP"
45 This determines which numeric base the calculator will use when it does
46 calculations. There are four bases the calculator supports: binary (base 2),
47 octal (base 8), decimal (base 10), or hexidecimal (base 16). The default
49 .IP "\fB-notation \fP\fI<display_notation>\fP"
51 This determines how the answers are to be display on the calculator.
52 There are three ways of displaying answers on the calculator: scientific,
53 engineering, and fixed. The default is fixed.
54 .IP "\fB-trig \fP\fI<trigonometric_type>\fP"
56 This determines how answers are presented when the calculator is in
57 scientific mode. There are three trigonometric ways to present the answers:
58 degrees, radians, or gradients. The default is degrees.
59 .IP "\fB-no_menu_bar\fP"
61 This option makes the calculator come up with no menubar.
62 .IP "\fB-session \fP\fI<session_file>\fP"
64 This option takes the name of a session file as an additional parameter.
65 \fIDtcalc\fP is run with the specified session file name. This session
66 file is a file that was previously saved by \fIdtcalc\fP during a session
71 The Calculator supports a number of resources which make it much more
72 configurable. Following is the list of supported resources and their default
81 Name Class Type Default
83 postMenuBar PostMenuBar Boolean True
84 accuracy accuracy int 2
85 base Base string decimal
86 display Display string fixed
87 mode Mode string scientific
88 trigType TrigType string degrees
92 .IP "\fBDtcalc*postMenuBar:\fP"
93 Specifies wheither the menu bar should appear or not.
94 .IP "\fBDtcalc*accuracy:\fP"
95 Specifies wheither the menu bar should appear or not.
96 .IP "\fBDtcalc*base:\fP"
97 This resource allows the user to change the default for the numeric base
98 the calculator uses when it does its calculations. The default is "decimal"
99 which is base 10. Possible values are:
102 \fBbinary (or bin):\fP do calculations in base 2.
105 \fBoctal (or oct):\fP do calculations in base 8.
108 \fBdecimal (or dec):\fP do calculations in base 10.
111 \fBhexidecimal (or hex):\fP do calculations in base 16.
112 .IP "\fBDtcalc*display:\fP"
113 This resource allows the user to change the default for the way answers are
114 display on the calculator. The default is "fixed". Possible values are:
117 \fBfixed (or fix):\fP display in fixed mode.
120 \fBscientific (or sci):\fP display in scientific mode.
123 \fBengineering (or eng):\fP display in engineering mode.
126 \fBhexidecimal:\fP do calculations in base 16.
130 .IP "\fBMemory Register\fP"
131 .IP "\fBFinancial Register\fP"
132 .IP "\fBASCII Converter\fP"
133 .IP "\fBFunctions\fP"
134 .IP "\fBConstants\fP"
136 .IP "\fBPopup Menu Support\fP"
138 (c) Copyright 1994 Hewlett-Packard Company
140 (c) Copyright 1994 International Business Machines Corp.
142 (c) Copyright 1994 Sun Microsystems, Inc.
145 Hewlett-Packard Company, WTD-CV.