Usage

3.1. To Use Calculator Functions

To perform a calculation, use one of the following methods:

  • Click on the gcalctool buttons to enter numbers and functions.
  • Give focus to the gcalctool window, then use the keyboard or numeric keypad to specify the calculation that you want to perform. For a complete list of keyboard shortcuts, see Section 5 ― Quick Reference: Keyboard Shortcuts.

The gcalctool application automatically displays numbers with more than 40 digits, and small numbers, as exponential numbers. For example, the following table shows the value that is displayed when you use the decimal numeric base with an accuracy of 2 significant places:

Display Signifies
1.23e+371.23 * 1037
1e-50.00001

For information about how to enter a number in exponential format, see Section 3.5.7 ― To Enter Exponential Numbers.

3.1.1. To Display a Separator in Large Numbers

To insert a separator between every three digits to the left of the numeric point in decimal base, choose View ▸ Show Thousands Separator.

Different countries and cultures have varying conventions for how to communicate. These conventions include the language spoken and the character used as a numeric separator.

gcalctool has been internationalized so users can adapt to their own conventions. This is done by setting a specific locale. We can't determine what locales will exist, except for a standard one called the C locale.

When you use the C locale, the separator character is not displayed.

3.1.2. To Copy and Paste in the Display Area

To copy the result of a calculation, choose Edit ▸ Copy. You can paste the value into another application.

To paste a previously copied value into the display area, choose Edit ▸ Paste.

3.2. To Perform Basic Calculations

Basic mode is displayed by default when you first start gcalctool. To explicitly invoke Basic mode, choose View ▸ Basic.

The calculator memory registers are unavailable in Basic Mode. In other words, View ▸ Memory Registers is inactive.

3.2.1. To Perform Simple Calculations

To perform simple calculations, use the buttons described in Table 1.

Table 1Performing Simple Calculations
Function Button Description Example Result
Numerals 0 to 9 inclusiveIn decimal and hexadecimal base, all numerals are available. In octal base, 8 and 9 are unavailable. In binary base, only 0 and 1 are available. The default base is decimal.11
Numeric point .Starts the fractional part of a numeric entry.1 . 21.2
Calculate a result =Displays the result of the current calculation in the current base.1 + 2 =3
Addition +Adds the current value in the display area to the next number that you enter.1 + 2 =3
Subtraction -Subtracts from the current value in the display area the next number that you enter.3 - 2 =1
Multiplication *Multiplies the current value in the display area by the next number that you enter.3 * 2 =6
Division /Divides the current value in the display area by the next number that you enter.6 / 3 =2
Change the arithmetic sign +/-Changes a positive number to a negative number, or a negative number to a positive number.8 +/--8

3.2.2. To Erase Characters

To erase characters, use the buttons described in Table 2.

Table 2Erasing Characters
Function Button Description Example Result
Backspace BkspRemoves the rightmost character from the display area.1 + 22 Bksp =3
Clear Entry CE

Removes the current value from the display area.

This operation is the same as Clr

1 + 22 CE =0
Clear ClrResets the current value in the display area to zero and removes any previous calculation results. Clr also deselects the Hyp and Inv options in Scientific.1 + 22 Clr0

3.2.3. To Display ASCII Values

To display the ASCII value of a character, choose Edit ▸ Insert ASCII Value.

The Insert ASCII Value dialog is displayed.

Enter the required character in the Character field, then click Insert. The ASCII value of that character, in the current numeric base, appears in the display area. For example, the ASCII value of B in decimal base is 66.

3.3. To Perform Advanced Calculations

To change to Advanced mode, choose View ▸ Advanced.

When you change to Advanced mode, the following buttons are displayed to the right of the Basic mode buttons:

Figure 2gcalctool Advanced Mode Buttons
Table 3Performing Advanced Calculations
Function Button Description Example Result
Percentage %Divides the current value by 100.560 % =5.60
Reciprocal 1/xDivides 1 by the current value in the display area.4 1/x0.25
Square Root SqrtCalculates the square root of the current value in the display area.Sqrt 9 )=3
Square x2Calculates the square of the current value in the display area.3 x29
Integer Portion IntCalculates the integer portion of the current value in the display area.-23.45 Int-23
Fractional Portion FracCalculates the fractional portion of the current value in the display area.-23.45 Frac-0.45
Absolute Value AbsCalculates the absolute value of the current value in the display area.-23.45 Abs23.45
Parentheses ( and )Calculations within parentheses are performed first. You can nest parentheses to any level.

2 + 3 * 4 =

2 + ( 3 * 4 )

20

14

3.3.1. To Use the Calculator Memory Registers

You can store values in any of the ten gcalctool memory registers R0 to R9. To display the memory registers, choose View ▸ Memory Registers.

The memory registers can be dismissed by either choosing View ▸ Memory Registers again, or by clicking on the Close button in the memory register window.

Table 4 describes the memory functions that you can use.

Table 4Memory Functions
Function Button Description Example Result
Store Value in Memory Register Sto

Stores the current contents of the display area in the specified memory register. Click Sto, then select a memory register from the popup menu.

To clear a memory register during a gcalctool session:

  1. Click Clr.
  2. Click Sto.
  3. Select the memory register from the popup menu.
22 Sto R2The value 22 is stored in memory register R2.
Retrieve Value From Memory Register RclRetrieves the contents of the specified memory register. Click Rcl, then select the memory register from the popup menu.0 Rcl R2The value in the display area is 22.
Exchange Memory Register Value and Displayed Value ExchExchanges the contents of the specified memory register and the current value in the display area. Click Exch, then select the memory register from the popup menu.44 Exch R2The value in the display area changes from 44 to 22, the value in R2 changes from 22 to 44.

If you use keyboard shortcuts, you can use the keyboard to specify the memory register, as shown in the following examples:

Keyboard Entry Description
S 2Stores the current contents of the display area in memory register R2.
R 2Retrieves the current contents of memory register R2 into the display area.
X 2Exchanges the current value of the display area with the contents of memory register R2.

3.4. To Perform Financial Calculations

To change to Financial mode, choose View ▸ Financial.

When you change to Financial mode, the following buttons are displayed above the Basic and Advanced mode buttons:

Figure 3gcalctool Financial Mode Buttons

To perform financial calculations, use the buttons described in Table 5.

Table 5Performing Financial Calculations
Function Button Description Example Result
Compounding Term CtrmCalculates the number of compounding periods necessary to increase an investment from a present value to a future value, at a fixed interest rate per compounding period.

You have just deposited $8000 in an account that pays an annual interest rate of 9%, compounded monthly. Given the annual interest rate, you determine that the simple monthly interest rate is 0.09 / 12 = 0.0075. To calculate the time period necessary to double your investment, click Ctrm, and put the following values into the text entries:

Periodic Interest Rate

0.0075

Future Value

16000

Present Value

8000

Click Calculate

92.77

The investment doubles in value in 92.77 months.

Double-Declining Depreciation DdbCalculates the depreciation allowance on an asset for a specified period of time, using the double-declining balance method.

You have just purchased an office machine for $8000. The useful life of this machine is six years. The salvage value after six years is $900. To calculate the depreciation expense for the fourth year, using the double-declining balance method, click Ddb and put the following values into the text entries:

Cost

8000

Salvage

900

Life

6

Period

4

Click Calculate

790.12

The depreciation expense for the fourth year is $790.12.

Future Value FvCalculates the future value of an investment based on a series of equal payments at a specific periodic interest rate, over the number of payment periods in the term.

You plan to deposit $4000 in a bank account on the last day of each year for the next 20 years. The account pays 8% interest, compounded annually. Interest is paid on the last day of each year. To calculate the value of your account in 20 years, press Fv and put the following values into the text entries:

Periodic Payment

4000

Periodic Interest Rate

0.08

Number Of Periods

20

Click Calculate

183047.86

At the end of 20 years, the value of the account is $183,047.86.

Gross Profit MarginGpmCalculates the resale price of a product, based on the product cost and the wanted gross profit margin.

You sell T-Shirts online. Each T-Shirt cost you $12 in material and labor. You want to sell the T-Shirts with a Gross Profit Margin of 0.40 - for every five dollars you earn, you want two to be profit. To calculate the price you would have to sell your T-Shirts for, press Gpm and put the following values into the text entries:

Cost

12

Margin

0.40

Click Calculate

20

You will have to sell your T-Shirts for $20

Periodic Payment PmtCalculates the amount of the periodic payment of a loan, where payments are made at the end of each payment period.

You are considering a $120,000 mortgage for 30 years at an annual interest rate of 11.0%. Given the annual interest rate, you determine that the simple monthly interest rate is 0.11 / 12 = 0.00917. The term is 30 * 12 = 360 months. To calculate the monthly repayment for this mortgage, press Pmt and put the following values into the text entries:

Principal

120000

Periodic Interest Rate

0.00917

Term

360

Click Calculate

1143.15

The monthly repayment is $1143.15.

Present Value PvCalculates the present value of an investment based on a series of equal payments, discounted at a periodic interest rate, over the number of payment periods in the term.

You have just won a million dollars. The prize is awarded in 20 annual payments of $50,000 each. Annual payments are received at the end of each year. If you were to accept the annual payments of $50,000, you would invest the money at a rate of 9%, compounded annually.

However, you are given the option of receiving a single lump-sum payment of $400,000 instead of the million dollars annuity. To calculate which option is worth more in today's dollars, press Pv and put the following values into the text entries:

Periodic Payment

50000

Periodic Interest Rate

0.09

Number Of Periods

20

Click Calculate

456427.28

The $1,000,000 paid over 20 years is worth $456,427.28 in present dollars.

Periodic Interest Rate RateCalculates the periodic interest necessary to increase an investment of a present value to a future value, over a number of compounding periods.

You have invested $20,000 in a bond. The bond matures in five years, and has a maturity value of $30,000. Interest is compounded monthly. The term is 5 * 12 = 60 months. To calculate the periodic interest rate for this investment, press Rate and put the following values into the text entries:

Future Value

30000

Present Value

20000

Term

60

Click Calculate

.00678

The monthly interest rate is 0.678%. The annual interest rate is 0.678% * 12 = 8.14%.

Straight-Line Depreciation SlnCalculates the straight-line depreciation of an asset for one period. The depreciable cost is cost - salvage. The straight-line method of depreciation divides the depreciable cost evenly over the useful life of an asset. The useful life is the number of periods, typically years, over which an asset is depreciated.

You have just purchased an office machine for $8000. The useful life of this machine is six years. The salvage value after six years is $900. To calculate the yearly depreciation expense, using the straight-line method, prss Sln, and put the following values into the first three memory registers:

Cost

8000

Salvage

900

Life

6

Click Calculate

1183.33

The yearly depreciation expense is $1183.33.

Sum-Of-The-Years'-Digits Depreciation SydCalculates the depreciation allowance on an asset for a specified period of time, using the Sum-Of-The-Years'-Digits method. This method of depreciation accelerates the rate of depreciation, so that more depreciation expense occurs in earlier periods than in later ones. The depreciable cost is cost - salvage. The useful life is the number of periods, typically years, over which an asset is depreciated.

You have just purchased an office machine for $8000. The useful life of this machine is six years. The salvage value after six years is $900. To calculate the depreciation expense for the fourth year, using the sum-of-the-years'-digits method, press Syd, and put the following values into the text entries:

Cost

8000

Salvage

900

Life

6

Period

4

Click Calculate

1014.29

The depreciation expense for the fourth year is $1014.29.

Payment Period TermCalculates the number of payment periods that are necessary during the term of an ordinary annuity, to accumulate a future value, at a certain periodic interest rate.

You plan to deposit $1800 in a bank account on the last day of each year. The account pays 11% interest, compounded annually. Interest is paid on the last day of each year. To calculate the time period necessary to accumulate $120,000, press Term, and put the following values into the text entries:

Periodic Payment

1800

Future Value

120000

Periodic Interest Rate

0.11

Click Calculate

20.32

$120,000 accumulates in the account in 20.32 years.

3.5. To Perform Scientific Calculations

To change to Scientific mode, choose View ▸ Scientific.

When you change to Scientific mode, the following buttons are displayed above the Basic and Advanced mode buttons:

Figure 4gcalctool Scientific Mode Buttons

3.5.1. To Set the Accuracy

To set the accuracy of the display area and of the memory registers, click Acc, then select from the popup menu the accuracy level that you require. The current accuracy level is indicated by a preceding black circle in the popup menu. Up to 99 significant places can be displayed. The default accuracy is 9 significant places.

To set the accuracy level above 9, select Other (9) ..., then choose the accuracy level you require in the Set Precision popup.

By default, trailing zeroes are not shown. To display trailing zeroes, click Acc then select Show Trailing Zeroes from the popup menu, or choose View ▸ Show Trailing Zeroes. A preceding check mark in the Acc popup menu or View menu indicates that the Show Trailing Zeroes option has been selected. To hide trailing zeroes, choose View ▸ Show Trailing Zeroes again.

The examples in the following table show how the accuracy setting affects x in the display area, when you use decimal base, with the Show Trailing Zeroes option selected, for the 1 / 8 = x calculation:

Accuracy Result
1 significant place1.2
2 significant places1.25
3 significant places1.250

3.5.2. To Set the Display Type

To set the display type, select one of the buttons described in Table 6.

Table 6Setting the Display Type
Function Button Description
Engineering Display Type EngSets the display type to engineering format. Results are displayed in scientific notation. The exponent is always a multiple of three.
Fixed-Point Display Type FixSets the display type to fixed-point format. Results are not displayed in scientific notation. Fixed-point is the default display type. If you change from scientific mode to either basic mode or financial mode, gcalctool automatically sets the display type to fixed-point format.
Scientific Display Type SciSets the display type to scientific format. Results are displayed in scientific notation, with a fixed number of numeric digits.

3.5.3. To Set the Trigonometric Type

To set the trigonometric type, select one of the buttons described in Table 7.

Table 7Setting the Trigonometric Type
Function Button Description
Degrees DegreesSets the trigonometric type to degrees. Degrees is the default trigonometric type.
Gradians GradiansSets the trigonometric type to gradians.
Radians RadiansSets the trigonometric type to radians.

3.5.4. To Set the Trigonometric Options

To set the trigonometric options, use the options described in Table 8.

Table 8Setting the Trigonometric Options
Function Button Description
Hyperbolic Option Indicator HypSelects the hyperbolic option for use with the trigonometric functions.
Inverse Option Indicator InvSelects the inverse option for use with the trigonometric functions.

By default, the options described in Table 8 are not selected. Click Clr to deselect these options.

3.5.5. To Calculate Trigonometric Values

To calculate trigonometric values, use the buttons described in Table 9.

Table 9Calculating Trigonometric Values
Function Button Description Example Result
Cosine cos Cos, Hyp option not selected, Inv option not selectedCalculates the cosine of the current value in the display area.60 Cos0.5
Arc Cosine acos Cos, Hyp option not selected, Inv option selectedCalculates the arc cosine of the current value in the display area.0.5 Inv Cos60
Hyperbolic Cosine cosh Cos, Hyp option selected, Inv option not selectedCalculates the hyperbolic cosine of the current value in the display area.0.4 Hyp Cos1.081072372
Arc Hyperbolic Cosine acosh Cos, Hyp option selected, Inv option selectedCalculates the arc hyperbolic cosine of the current value in the display area.1.6 Hyp Inv Cos1.046967915
Sine sin Sin, Hyp option not selected, Inv option not selectedCalculates the sine of the current value in the display area.90 Sin1
Arc Sine asin Sin, Hyp option not selected, Inv option selectedCalculates the arc sine of the current value in the display area.1 Inv Sin90
Hyperbolic Sine sinh Sin, Hyp option selected, Inv option not selectedCalculates the hyperbolic sine of the current value in the display area.0.4 Hyp Sin0.410752326
Arc Hyperbolic Sine asinh Sin, Hyp option selected, Inv option selectedCalculates the arc hyperbolic sine of the current value in the display area.1.6 Hyp Inv Sin1.248983328
Tangent tan Tan, Hyp option not selected, Inv option not selectedCalculates the tangent of the current value in the display area.45 Tan1
Arc Tangent atan Tan, Hyp option not selected, Inv option selectedCalculates the arc tangent of the current value in the display area.1 Inv Tan45
Hyperbolic Tangent tanh Tan, Hyp option selected, Inv option not selectedCalculates the hyperbolic tangent of the current value in the display area.0.6 Hyp Tan0.537049567
Arc Hyperbolic Tangent atanh Tan, Hyp option selected, Inv option selectedCalculates the arc hyperbolic tangent of the current value in the display area.0.6 Hyp Inv Tan0.693147181

3.5.6. To Calculate Logarithms

To calculate logarithms, use the buttons described in Table 10.

Table 10Calculating Logarithms
Function Button Description Example Result
Common Logarithm Base 10 Log10Calculates the common logarithm (base 10) of the current value in the display area.10 Log101
Natural Logarithm LnCalculates the natural logarithm of the current value in the display area.10 Ln2.30
Common Logarithm Base 2 Log2Calculates the common logarithm (base 2) of the current value in the display area.10 Log23.32

Common antilogarithm and natural antilogarithm are not supported in this version of gcalctool.

3.5.7. To Enter Exponential Numbers

To enter exponential numbers, use the Exp button.

The Exp button enables you to enter numbers in scientific notation, that is, mantissa * baseexponent:

mantissa

Current non-zero value in the display area. If the current value in the display area is zero, the mantissa is 1.0.

base

2, 8, 10, or 16 for binary, octal, decimal, and hexadecimal numeric base respectively.

exponent

Next number that you enter.

When you click Exp, the calculator displays . + to represent base to the power of the next number that you enter.

To change the sign of the number, use the +/- button before the Exp button. To change the sign of the exponent (the power to which the number is raised) use - after the Exp button.

To enter a decimal number in exponential format, use the guidelines in the following table:

Number Enter Number Displayed
120000000012 Exp + 8 =1200000000
-1200000000- 12 Exp + 8 = -1200000000
0.0000001212 Exp - 8 = 1.2e-7
-0.00000012- 12 Exp - 8 = -1.2e-7

3.5.8. To Use Constant Values

Click Con to display the list of defined constant values. All constant values are specified in decimal numeric base, even if the current numeric base is not decimal.

Select a constant from the menu to enter its value in the display area. If you use the keyboard shortcut #, you can use the keyboard to specify the constant, as shown in the following example:

Keyboard Entry Constant
# 3 C3

The gcalctool application provides ten default constant values, as described in the following table:

Number Value Description
C00.621

Kilometer-to-mile conversion factor

Multiply the current value in the display area by this constant, to convert from kilometers per hour to miles per hour. For example, 8 * Con C0 = 5.

Divide the current value in the display area by this constant, to convert from miles per hour to kilometers per hour. For example, 5 / Con C0 = 8.

C11.414213562Square root of 2
C22.718281828e
C33.141592653pi
C40.3937007

Centimeter-to-inch conversion factor

Multiply the current value in the display area by this constant, to convert from centimeters to inches. For example, 30 * Con C4 = 12.

Divide the current value in the display area by this constant, to convert from inches to centimeters. For example, 12 / Con C4 = 30.

C557.295779513Degrees in a radian
C610485762 ^ 20
C70.0353

Gram-to-ounce conversion factor

Multiply the current value in the display area by this constant, to convert from grams to ounces. For example, 500 * Con C7 = 18.

Divide the current value in the display area by this constant, to convert from ounces to grams. For example, 18 / Con C7 = 500.

C80.948

Kilojoule-to-British-thermal-unit conversion factor

Multiply the current value in the display area by this constant, to convert from kilojoules to British thermal units. For example, 10 * Con C8 = 9.48.

Divide the current value in the display area by this constant, to convert from British thermal units to kilojoules. For example, 9.48 / Con C8 = 10.

C90.061

Cubic-centimeter-to-cubic-inch conversion factor

Multiply the current value in the display area by this constant, to convert from cubic centimeters to cubic inches. For example, 100 * Con C9 = 6.10.

Divide the current value in the display area by this constant, to convert from cubic inches to cubic centimeters. For example, 6.10 / Con C9 = 100.

You can overwrite the default constants to store your own constants.

To store a new constant or edit an existing constant, perform the following steps:

  1. Click Con, then select Edit Constants from the popup menu.
  2. In the Edit Constants dialog, select the constant that you want to overwrite or edit.
  3. Click on the Value field, then enter the new value.
  4. Click on the Description field, then enter the new description.
  5. Click OK to save your changes and close the Edit Constants dialog.

3.5.9. To Use Functions

To show the available functions, click Fun. A popup menu displays the list of defined functions. Select a function from the menu to run that function.

If you use the keyboard shortcut F, you can use the keyboard to specify the function, as shown in the following example:

Keyboard Entry Function
F 3 F3

The gcalctool application does not provide any default functions. You can store up to ten functions.

To store a new function or edit an existing function, perform the following steps:

  1. Click Fun, then select Edit Functions from the popup menu.
  2. In the Edit Functions dialog, select a blank entry, or the function that you want to overwrite.
  3. Click on the Value field, then enter the new equation to solve. You can use "ans" for the result of the previous equation and "R5" for register 5 etc. For example, enter (-R1+sqrt(R1^2-4*R0*R2))/(2*R0) to calculate a root of the quadratic equation R0*x^2 + R1*x + R2 = 0.
  4. Click on the Description field, then enter the new description. For example, Quadratic Solver.
  5. Click OK to save your changes and close the Edit Functions dialog.

3.5.10. To Perform Miscellaneous Scientific Calculations

To perform miscellaneous scientific calculations, use the buttons described in Table 11.

Table 11Performing Miscellaneous Scientific Calculations
Function Button Description Example Result
e to the x power exCalculates the value of e raised to the power of the current value in the display area.2 ex7.39
10 to the x power 10xCalculates the value of 10 raised to the power of the current value in the display area.2 10x100
2 to the x power 2xCalculates the value of 2 raised to the power of the current value in the display area.2 2x4
x to the y power xyRaises the current value in the display area to the power of the next value that you enter.2 xy 4 =16
x to the reciprocal y power x1/yRaises the current value in the display area to the reciprocal power of the next value that you enter.2 x1/y 4 =16
x Factorial x!Calculates the factorial of the current value in the display area. x factorial is x*(x-1)*(x-2)...*1. This function applies only to positive integers.4 x!24
Modulus Division ModDivides the current integer value in the display area by the next integer number that you enter, displaying the remainder.15 Mod 4 =3
Random Number Generator RandGenerates a random number in the range 0.0 to 1.0 then displays the random number in the display area.Rand0.14

3.6. To Perform Programming Calculations

To change to Programming mode, choose View ▸ Programming.

When you change to Programming mode, the following widget is displayed above the Base and Advanced mode buttons:

Figure 5gcalctool Programming Mode Buttons

3.6.1. To Set the Numeric Base

To set the numeric base, select one of the buttons described in Table 12.

Table 12Setting the Numeric Base
Function Button Description
Binary Base BinSets the numeric base to binary, that is, base 2.
Octal Base OctSets the numeric base to octal, that is, base 8.
Decimal Base DecSets the numeric base to decimal, that is, base 10. Decimal is the default numeric base. If you change from Programming mode to another mode, gcalctool automatically sets the numeric base to decimal.
Hexadecimal Base HexSets the numeric base to hexadecimal, that is, base 16.

3.6.2. To Set the Word Length

The word length can be altered, to make the bitwise functions behave differently. To set the word length, select one of the buttons described in Table 13.

Table 13Setting the Word Length
Function Button Description
64 bit word 64 bitSets the word length to 64 bits. 64 bits is the default word length.
32 bit word 32 bitSets the word length to 32 bits.
16 bit word 16 bitSets the word length to 16 bits.

3.6.3. To Perform Bit Manipulations on Integers

If the calculator display shows an integer value, then each of the bits in that integer value is displayed as a collection of 0s and 1s in the Bit Editor. By clicking on any of these individual bits, their value can be toggled, causing the displayed integer value to be adjusted accordingly.

3.6.4. To Perform Bitwise Calculations

To perform bitwise calculations, use the buttons described in Table 14.

Table 14Performing Bitwise Calculations
Function Button Description Example Result
Bitwise OR ORPerforms a bitwise OR operation on the current value in the display area and the next number that you enter.10001000 OR 0001000110011001
Bitwise AND ANDPerforms a bitwise AND operation on the current value in the display area and the next number that you enter.10101010 AND 00110011100010
Bitwise NOT NOTPerforms a bitwise NOT operation on the current value in the display area, using the word size configured in Section 3.6.2 ― To Set the Word Length.NOT 1357ACEFECA8531
Bitwise XOR XORPerforms a bitwise XOR operation on the current value in the display area and the next number that you enter.1100 XOR 1010110
Bitwise XNOR XNORPerforms a bitwise XNOR operation on the current value in the display area and the next number that you enter.1100 XNOR 10101001

3.6.5. To Manipulate Binary Numbers

To manipulate binary numbers, use the buttons described in Table 15.

Table 15Manipulating Binary Numbers
Function Button Description Example Result
Left Shift n <Shifts the current value in the display area, the specified number of places to the left. Click <, then select the number of shift places from the popup menu. The number can be shifted up to 15 places left. 111 < 1 place1110
Right Shift n >Shifts the current value in the display area, the specified number of places to the right. Click >, then select the number of shift places from the popup menu. The number can be shifted up to 15 places right.1011 > 1 place101
Truncating a number TruncTruncates the current value in the display area to the word size configured in Section 3.6.2 ― To Set the Word Length.FFFFFFFFFF TruncFFFFFFFF
Get the 1's complement 1'sCalculates the 1's complement for the current value in the display area, using the word size configured in Section 3.6.2 ― To Set the Word Length.D723 1'sFFFF28DC
Get the 2's complement 2'sCalculates the 2's complement for the current value in the display area, using the word size configured in Section 3.6.2 ― To Set the Word Length.D723 2'sFFFF28DD

If you use keyboard shortcuts, you can use the keyboard to specify the number of places to shift, as shown in the following examples:

Keyboard Entry Description
< 4Shifts the current binary value in the display area 4 places to the left.
> 4Shifts the current binary value in the display area 4 places to the right.

3.6.6. To Perform Miscellaneous Programming Calculations

To perform miscellaneous programming calculations, use the buttons described in Table 16.

Table 16Performing Miscellaneous Programming Calculations
Function Button Description Example Result
Hexadecimal Numerals A to F inclusiveThese numerals are available in hexadecimal base only.BB

3.7. To Undo and Redo

To undo your previous action, choose Edit ▸ Undo. You can undo up to 15 past actions.

If you want to redo an action you have just undone, choose Edit ▸ Redo. You can redo up to 15 undone actions.

3.8. To Quit

To quit gcalctool, choose Calculator ▸ Quit.

When you quit gcalctool, the current values of the following settings are stored and automatically applied the next time you start gcalctool: