Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ dtcalc(1) — Tru64 UNIX 5.1b

Media Vault

Software Library

Restoration Projects

Artifacts Sought

dtcalc(1)  —  Commands

CDE

NAME

dtcalc − the CDE calculator

SYNOPSIS

dtcalc [−a accuracy] [−m mode] [−b numeric_base] [−notation display_notation] [−trig trigonometric_type] [−no_menu_bar] [−session session_file] [−?]

OPTIONS

The dtcalc utility defines a number of command-line options that allow the user to configure how the calculator displays itself.  Command-line options have a higher precedence than resources. By using command-line options, a user can override anything specified in a resource file. 

−a <accuracy>
This is the initial number of digits displayed after the numeric point. This value must be in the range 0 to 9. The default value is 2.

−m <mode>
This determines in which mode the calculator will display itself. The possible values for <mode> are: scientific, financial or logical. The default mode is scientific. Some of the calculator keys change operations when the mode is changed. 

−b <numeric_base>
This determines which numeric base the calculator will use when it does calculations. The calculator supports four bases: binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16). The default is decimal. 

−notation <display_notation>
This determines how the answers are to be displayed on the calculator. The possible values for <display_notation> are: scientific, engineering and fixed. The default is fixed. 

−trig <trigonometric_type>
This determines how answers are presented when the calculator is in scientific mode. The possible values for <trigonometric_type> are: degrees, radians and gradients. The default is degrees. 

-no_menu_bar
This option causes the calculator to display no menu bar.

−session <session_file>
The dtcalc utility runs with the session file specified in the session_file parameter. Session files are generated as a dtcalc session shuts down. 

−?This prints out the usage message. 

DESCRIPTION

The dtcalc command provides a calculator for use within the Common Desktop Environment, with an easy-to-use interface for access to common arithmetic and financial calculations. 

The calculator is designed to operate in much the same way as many hand-held calculators. It provides three modes of operation: scientific, financial, and logical. The default operation is scientific, but with the easy-to-use GUI, changing to the modes of operation is easy. When the operation mode is changed, a number of keys operate differently. 

RESOURCES

The calculator supports a number of resources which make it much more configurable. The supported resources and their default values are:

Client Resource Set

Name Class Type Default
postMenuBar PostMenuBar Boolean True
accuracy Accuracy int 2
base Base string decimal
displayNotation DisplayNotation string fixed
mode Mode string scientific
trigType TrigType string degrees

Dtcalc∗postMenuBar:
Specifies whether the menu bar should appear or not.

Dtcalc∗accuracy:
Specifies the number of digits displayed after the numeric point. Value must be 0 through 9, inclusive. Default value is 2.

Dtcalc∗base:
This resource allows the user to change the default for the numeric base the calculator uses when it does its calculations. Possible values are:

binary (or bin): do calculations in base 2. 

octal (or oct): do calculations in base 8. 

decimal (or dec): do calculations in base 10. This is the default value. 

hexadecimal (or hex): do calculations in base 16

Dtcalc∗display:
This resource allows the user to change the default for the way answers are displayed on the calculator. Possible values are:

fixed (or fix): display in fixed mode. This is the default value. 

scientific (or sci): display in scientific mode. 

engineering (or eng): display in engineering mode

FILES

/usr/dt/bin/dtcalc
This is the executable file for the CDE calculator.

/usr/dt/app-defaults/<LANG>/Dtcalc
This file includes the application defaults for the CDE calculator.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026