Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Views  





2 Notation  





3 Variable handling  





4 See also  





5 References  





6 External links  














GNOME Calculator






Asturianu
Català
Español
Français
Italiano
Nederlands

Русский
Slovenčina
 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


GNOME Calculator
Stable release

43.0.1[1] Edit this on Wikidata / 16 September 2022; 22 months ago (16 September 2022)

Repository
Written inC, Vala
Operating systemUnix-like
TypeSoftware calculator
LicenseGPL-3.0-or-later
Websiteapps.gnome.org/app/org.gnome.Calculator Edit this on Wikidata

GNOME Calculator, formerly known as gcalctool, is the software calculator integrated with the GNOME desktop environment. It is programmed in C and Vala and part of the GNOME Core Applications.

Views

[edit]

Notation

[edit]

The GNOME calculator uses the common infix notation for binary functions, such as the four basic arithmetic operations. Unlike many other calculators, it uses prefix notation, not postfix notation for unary functions. So to calculate e.g. the sineofone, the user must push the keys sin+1+=, not 1+sin, as on many other calculators.

The decimal separator on the number pad is based on the general keyboard layout since version 3.12.3.[2]

Variable handling

[edit]

Advanced, Financial, and Programming modes present features for storing and retrieving values labeled as variables. R is the symbol for variable, used on GUI buttons ←R (insert variable) and →R (assign variable).

Variable names are case-sensitive alphabetical string without spaces. Variable values are numerical strings.

Values are assigned to variable names by entering in the GUI text input/result field a variable name followed by 0 or more spaces, followed by the = character, followed by 0 or more spaces, followed by either a numeric value or an existing variable name, e.g. "x = 2" or "result = subtotal" (if subtotal was already assigned a numeric value). A numeric value is assigned to the first variable name. If the value was entered as an existing variable name rather than as a numeric value, the existing variable's value is assigned to the first variable name. Assignment to a variable name that does not exist creates the new variable by name with the assigned value. The →R (assign variable) GUI button shows a popup menu of existing variables (and the current value of each), to which selected variable is assigned the current numeric value displayed in the calculator, just as if that variable name were entered in the GUI text field followed by a =, followed by the numeric value.[citation needed]

Entering a variable name into the GUI text field substitutes the variable value for the variable name when the expression in the GUI text field is evaluated (e.g. when the keyboard ↵ Enter button or the = GUI button is pressed). The ←R (insert variable) GUI button shows a popup menu of existing variables (and the current value of each); the selected variable name is inserted (appended) into the GUI text field.[citation needed]

Two predefined variables are available from the ←R (insert variable) GUI button: ans and rand. ans contains the last "answer" value calculated by the calculator as a result. rand contains a random value between 0.0 and 1.0 (the value is not displayed; a rand variable is evaluated in an expression when calculating a result).

Variable names and values persist between launch and quit of the application.

See also

[edit]

References

[edit]
  1. ^ "gnome-calculator 43.0.1". Retrieved 16 December 2022.
  • ^ "gnome-calculator 3.12.3". 2013-06-15.
  • [edit]
    Retrieved from "https://en.wikipedia.org/w/index.php?title=GNOME_Calculator&oldid=1221453044"

    Categories: 
    Software calculators
    GNOME Core Applications
    Software that uses GTK
    Software that uses Meson
    Free software programmed in C
    Free software programmed in Vala
    Hidden categories: 
    Articles with short description
    Short description is different from Wikidata
    Articles needing cleanup from November 2011
    All pages needing cleanup
    Articles containing how-to sections
    All articles with unsourced statements
    Articles with unsourced statements from November 2013
    Commons category link is on Wikidata
     



    This page was last edited on 30 April 2024, at 01:07 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki