DTCALC(1)
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 ๐
-aaccuracy โ this is the initial number of digits displayed after the numeric point. This value must be in the range0to9. The default value is2.-mmode โ this determines which mode the calculator will display itself in. The possible values for mode are:scientific,financial, orlogical.scientificis the default mode. Some of the calculator keys change operations when the calculatorโs mode is changed.-bnumeric_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), orhexadecimal(base 16). The possible values for numeric_base are:binary,octal,decimal, orhexadecimal. The default isdecimal.-notationdisplay_notation โ this determines how the answers are to be displayed on the calculator. The possible values for display_notation are:scientific,engineering, orfixed. The default isfixed.-trigtrigonometric_type โ this determines how answers are presented when the calculator is inscientificmode. The possible values for trigonometric_type are:degrees,radians, orgradients. The default isdegrees.-no_menu_barโ this option makes the calculator come up with no menubar.-sessionsession_file โ thedtcalcutility runs with the session file specified in the session_file parameter. Session files are generated as adtcalcsession 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โ classPostMenuBar, typeBoolean, defaultTrueaccuracyโ classAccuracy, typeint, default2baseโ classBase, typestring, defaultdecimaldisplayNotationโ classDisplayNotation, typestring, defaultfixedmodeโ classMode, typestring, defaultscientifictrigTypeโ classTrigType, typestring, defaultdegreesDtcalc*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 aspostMenuBar๐ญ the resource table still says typeintand default2, 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(orbin): do calculations in base 2.octal(oroct): do calculations in base 8.decimal(ordec): do calculations in base 10.hexadecimal(orhex): 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(orfix): display in fixed mode.scientific(orsci): display in scientific mode.engineering(oreng): 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
- nixos 26.05: cde 2.5.3
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms