DTCALC(1)

๐Ÿ“ฆ
version 2.5.3 ยท 2 versions
, in nixos 26.05

okay so bestie, welcome to the manual page for dtcalc(user cmd) โ€” aka The CDE Calculator โ€” and itโ€™s giving โ€œcalculator that actually slaysโ€ ๐Ÿ’…โœจ

โœจ 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] [-?]

๐Ÿ’– DESCRIPTION ๐Ÿ’–

The dtcalc utility is a calculator for use within the CDE. It provides an easy-to-use interface designed to give access to common arithmetic and financial calculations. lowkey iconic of it ๐Ÿงฎโœจ

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 the keys change for the new operations. the keys are literally switching outfits, periodt ๐Ÿ’…

๐ŸŒธ 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. command line > resource file, no cap ๐Ÿ‘‘

  • -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 which mode the calculator will display itself in. The possible values for mode are: scientific, financial, or logical. scientific is the default mode. Some of the calculator keys change operations when the calculatorโ€™s mode is changed.
  • -b numeric_base โ€” this determines which numeric base the calculator will use when it does calculations. There are four bases the calculator supports: binary (base 2), octal (base 8), decimal (base 10), or hexadecimal (base 16). The possible values for numeric_base are: binary, octal, decimal, or hexadecimal. 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, or 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, or gradients. The default is degrees.
  • -no_menu_bar โ€” this option makes the calculator come up with no menubar.
  • -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.

๐ŸŽ€ RESOURCES ๐ŸŽ€

The calculator supports a number of resources which make it much more configurable. Following is the list of supported resources and their default values.

๐Ÿงธ Client Resource Set ๐Ÿงธ

Hereโ€™s the resource table energy, but in list form because weโ€™re keeping it cute and readable:

  • postMenuBar โ€” class PostMenuBar, type Boolean, default True
  • accuracy โ€” class Accuracy, type int, default 2
  • base โ€” class Base, type string, default decimal
  • displayNotation โ€” class DisplayNotation, type string, default fixed
  • mode โ€” class Mode, type string, default scientific
  • trigType โ€” class TrigType, type string, default degrees
  • Dtcalc*postMenuBar: โ€” specifies whether the menu bar should appear or not.
  • Dtcalc*accuracy: โ€” the page says this โ€œSpecifies whether the menu bar should appear or not.โ€ yes bestie, it literally repeats the same sentence as postMenuBar ๐Ÿ˜ญ the resource table still says type int and default 2, so Iโ€™m just passing the message along.
  • Dtcalc*base: โ€” this resource allows the user to change the default for the numeric base the calculator uses when it does its calculations. The default is "decimal" which is base 10. 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.
    • 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. The default is "fixed". Possible values are:
    • fixed (or fix): display in fixed mode.
    • scientific (or sci): display in scientific mode.
    • engineering (or eng): display in engineering mode.

๐Ÿฆ‹ FILES ๐Ÿฆ‹

  • /nix/store/6waxpwr8lzfzc9ka48gl7yh60rqvlkdb-cde-2.5.3/bin/dtcalc โ€” this is the executable for the CDE Calculator.
  • /nix/store/6waxpwr8lzfzc9ka48gl7yh60rqvlkdb-cde-2.5.3/app-defaults/<LANG>/Dtcalc โ€” this file includes the application defaults for the CDE Calculator.

Thatโ€™s the whole dtcalc(user cmd) ride, source/version cde-2.5.3 โ€” and the footer has no date stamped in it, just the manual tag, so no cap there bestie ๐Ÿซถ๐Ÿ’œโœจ

๐Ÿ“ฆ where this page comes from