CALCULATOR(1)
π CALCULATOR(1) π
okay so bestie, welcome to the CALCULATOR(1) page from the General Commands Manual β yes, the FOX Calculator one, and yes, it's giving "I'm a programmer's calculator and I know it" β¨ let's get into it π
πΈ NAME πΈ
calculator β a simple desktop calculator π¦
π¦ SYNOPSIS π¦
calculator
β¨ DESCRIPTION β¨
The FOX Calculator is a simple desktop calculator that is geared toward the programmer, fr fr. It's not just out here doing your basic math β it supports a whole full complement of scientific functions, plus all the stuff programmers actually need, like bitwise operations, bitwise shifting, base-2 logarithm and exponents, and numeric conversion between hexadecimal, octal, binary, and decimal. she does it all π
The FOX Calculator implements correct operator precedences, so expressions like 2+3*5 yield the correct result, which is 17, and not 25. (the way that matters... iconic.) Also featured is a constant memory, which permanently stores its value even if you exit the calculator and restart it later. she remembers. she always remembers π§
π CONFIGURATION π
Pressing on the calculator icon brings up the Calculator Preferences dialog. That dialog comprises three settings:
- settings for the calculator itself;
- color settings of the button groups;
- information about the calculator.
π Calculator settings π
In the Calculator settings panel, you can change the font used for the display, by pressing the Set... button to bring up the standard Font Selection Dialog.
You can change the way numbers are printed as well:
- checking
Always show exponentwill cause the calculator display always to display the number in exponential notation; - checking
Never show exponentwill cause the calculator to render the number in simple dot notation.
The precision can be set by means of the spin button; the default precision is set to 16. Finally, the calculator can be set to beep when errors occur π
π¨ Color settings π¨
In the Color settings panel, you can change the colors of the various button groups. The buttons are grouped by function; the numbers are in one group, and the operators are in another, and so on. very aesthetic, very curated π
π About π
In the About panel, some information is presented about the calculator, like version number and author's contact.
π ENTERING NUMBERS π
You can enter a number by clicking on the digit buttons, or simply hit the right digit on the keyboard. easy.
Numbers in exponential notation are entered by entering the mantissa first, then hitting the EXP button, and then entering the exponent. Up to 3 digits may be entered for the exponent; entering more than 3 will cause the digits to shift, i.e. the first digit entered will be dropped and replaced by the second, the second digit will be replaced by the third, and the third will be replaced by the new input. she slides, she shifts, she moves on π«
ngl bestie, the original page just stops mid-sentence right here: "Changing the sign of the exponent is accomplished by hittin the" and then it jumps straight to the next thing. I'm not about to invent the rest of that sentence for you, so that's literally all it says π
At any time, you can hit the Backspace key to delete the last digit entered.
Two numbers, pi and e (euler's number) may be entered with a single button:
piβ enters the number3.1415926535897932384626433833eβ enters the number2.7182818284590452353602874713(hit theinvbutton first)
π₯ OPERATORS π₯
The operators in the FOX Calculator are the usual suspects:
+β addition-β subtraction (the original page spells it Substraction and honestly? we stan a typo π)*β multiplication/β floating point division
In addition, FOX Calculator also includes bitwise operators, such as:
ANDβ bit-wise logical andORβ bit-wise logical orXORβ bit-wise logical exclusive orNOTβ bit-wise logical notSHLβ bit-wise shift leftSHRβ bit-wise shift rightSARβ bit-wise signed shift right (hit theinvbutton first)
Also nice for programmers is the inclusion of integer operations:
modβ integer modulodivβ integer division (hit the β and yeah, the page cuts off right there too, bestie, that's genuinely all it says π)
All the operators have certain precedence relations with each other, so that an expression is evaluated correctly. no chaos, only order β¨
π TRIGONOMETRIC FUNCTIONS π
The Calculator incorporates the usual trigonometric functions:
sinβ sinecosβ cosinetanβ tangentasinβ inverse sine or arc sine (hit theinvbutton first)acosβ inverse cosineatanβ inverse tangentsinhβ hyperbolic sine (hit thehypbutton first)coshβ hyperbolic cosinetanhβ hyperbolic tangentasinhβ inverse hyperbolic sine (hit thehypandinvbuttons first)acoshβ inverse hyperbolic cosineatanhβ inverse hyperbolic tangent
For the first 6 functions, the angle mode determines whether the argument is specified in terms of degrees, radians, or grad. Note that the angle mode is preserved across invocations of the Calculator. she keeps her settings, periodt π
β OTHER FUNCTIONS β
Other functions supported by the calculator are the following:
logβ base 10 logarithmlnβ natural logarithm2logβ base 2 logarithmx!β factorialnPrβ permutationsnCrβ combinationssqrtβ square rootx^yβ x raised to the power y1/xβ reciprocal10^xβ base 10 exponentiation (hit theinvbutton first)e^xβ exponentiation2^xβ base 2 exponentiationx^1/yβ x raised to the power 1/yx^2β x squared
π LIMITS π
The calculator works in IEEE 746 double precision mode; for bit-wise operations, it uses 32 bit integers. Thus, the numeric limits are as follows:
Smallest real number: 2.2250738585072010e-308
Largest real number: 1.7976931348623158e+308
Smallest integer number: 0
Largest integer number: 4294967295
π«Ά AUTHOR π«Ά
This manpage was originally written by Bastian Kleineidam <calvin@debian.org> for the Debian distribution of the FOX Toolkit.
The main author of FOX is Jeroen van der Zijp <jeroen@fox-toolkit.org>. For a list of contributors see /usr/share/doc/libfox0.99/AUTHORS.
okay that's the whole page, bestie, and we're closing it out on 30 January 2002 β the date on the original footer, with CALCULATOR(1) sitting right there in the corner like the main character she is π thanks for reading, ily, go do some bitwise math π¦πβ¨
π¦ where this page comes from
- fedora 43: fox-utils 1.6.59-2.fc43 Β· GPL-2.0-or-later
- fedora 44: fox-utils 1.6.59-3.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms