MAN Solaris - gnome-calculator (1)



gnome-calculator, gcalctool - perform basic, financial, and scientific calculations



gnome-calculator | gcalctool [-a accuracy] [-D] [-E] [-v] [gnome-std-options]




Gnome calculator is a desktop calculator. It has been designed to be used with either the mouse or the keyboard. It is visually similar to a lot of hand-held calculators.

Calculator has the following modes:

Basic Mode Provides standard calculator functions. You can store numbers in 10 different memory registers, and easily retrieve and replace the numbers in the memory registers. Basic Mode is the default mode. You can use all of the Basic Mode functions in each of the other modes.

Financial Mode Provides several complex financial functions.

Scientific Mode Provides many additional mathematical functions, including trigonometric and logical functions. You can also store your own functions and constants, when you use Scientific Mode.


Some of the calculator keys have menu marks, this indicates that there is a menu associated with that key.

One of the most important things to remember about gnome-calculator is that calculations are performed from left to right, with no arithmetic precedence. If you need arithmetic precedence, then you should use parentheses.

Internal arithmetic is now down with multi-precision floating point numbers. Accuracy can be adjusted from zero to nine mumeric places in fixed notation, but numbers can be displayed in engineering and scientific notation as well. There is also an option to show or remove trailing zeroes after the numeric point. The calculator reverts to scientific notation when the number is larger than the display would allow in fixed notation. In the scientific mode, the base of operation can be changed between binary, octal, decimal and hexidecimal. Numbers are initially displayed in fixed notation to nine numeric places, with trailing zeroes removed, in the decimal base.

You can use the Copy and Paste functions in conjunction with the numeric display to store or retrieve characters from the clipboard. You can also remove the last digit entered, completely clear the displayed entry and totally reset the calculator.

There are ten memory registers. Numbers can be stored or retrieved in these locations, and arithmetic can be performed upon register contents.

Context sensitive help is also available. Control-F1 toggles whether a tooltip is displayed for the item which currently has focus.

On startup, Calculator uses the following configuration resources stored in a GConf database.

Values:Accuracy value
Description:The number of digits displayed after the numeric point. This value must be in the range 0 to 9.

Values:Numeric Base
Description:The initial numeric base. Valid values are "BIN" (binary), "OCT" (octal), "DEC" (decimal), and "HEX" (hexadecimal).

Values:Display mode
Description:The initial display mode. Valid values are "ENG" (engineering), "FIX" (fixed-point), and SCI" (scientific).

Description:The initial calculator mode. Valid values are "BASIC", "FINANCIAL", and "SCIENTIFIC".

Values:true, false (true)
Description:Whether to show trailing zeroes after the numeric point in the display value.

Values:true, false (false)
Description:Whether fixed numbers in the decimal base are displayed with thousands separated.

Values:true, false (true)
Description:Whether to display the memory register window when Calculator starts.

Values:Trig. type
Description:The initial trigonometric type. Valid values are "DEG" (degrees), "GRAD" (grads), and "RAD" (radians).

Any constants or functions that the user defines are also stored in the GConf database.


The following options are supported:

-a accuracy Specifies the number of digits displayed after the numeric point. This value must be in the range 0 to 9.

-D Enable debug mode.

-E Enable debug mode in the multiple-precision arithmetic package.

-v Show the version number and usage information.

gnome-std-options Standard options available for use with most GNOME applications. See gnome-std-options(5) for more information.


Example 1: Launching Calculator

example% gnome-calculator 


The following exit values are returned:

0 Application exited successfully

>0 Application exited with failure


The following files are used by this application:

/usr/bin/gcalctool Executable for Calculator.

/usr/bin/gnome-calculator Symbolic link to gcalctool.

~/.gcalctoolrc User-specific resources for customizing the appearance and color of Calculator.


See attributes(5) for descriptions of the following attributes:

Interface stabilityVolatile


Calculator Manual

Latest version of the GNOME Desktop User Guide for your platform.



Written by Glynn Foster and Rich Burridge, Sun Microsystems Inc., 2003.

Updated by Matt Keenan, Sun Microsystems Inc., 2006.

Jump to page    or go to Top of page |  Section 1 |  Main Solaris Index.

SunOS 5.11 gnome-calculator (1) 12 Sep 2006
Generated by Open Solaris Forum from /usr/share/man/man1/../man1/gnome-calculator.1 using man macros with tbl support.