Windows Calculator

Last updated
Windows Calculator
Original author(s) Chris Peters,
Mark Cliggett,
Marc Taylor,
Kraig Brockschmidt [1]
Developer(s) Microsoft
Initial releaseNovember 20, 1985;38 years ago (1985-11-20)
Repository github.com/Microsoft/calculator
Written in C++, C#
Operating system All versions of Microsoft Windows, Xbox system software,[ citation needed ] Windows 10 Mobile, Windows Phone, Linux [2]
Platform IA-32, x86-64, ARMv7-A, and ARMv8-A (and historically DEC Alpha, Itanium, MIPS, and PowerPC)
Type Software calculator
License Proprietary Software (Windows 1.0 - Windows 8.1)
MIT License (Windows 10)

Windows Calculator is a software calculator developed by Microsoft and included in Windows. In its Windows 10 incarnation it has four modes: standard, scientific, programmer, and a graphing mode. The standard mode includes a number pad and buttons for performing arithmetic operations. The scientific mode takes this a step further and adds exponents and trigonometric function, and programmer mode allows the user to perform operations related to computer programming. In 2020, a graphing mode was added to the Calculator, allowing users to graph equations on a coordinate plane. [3]

Contents

The Windows Calculator is one of a few applications that have been bundled in all versions of Windows, starting with Windows 1.0. Since then, the calculator has been upgraded with various capabilities.

In addition, the calculator has also been included with Windows Phone [4] and Xbox One.[ citation needed ] The Microsoft Store page proclaims HoloLens support as of February 2024, but the Calculator app is not installed on HoloLens by default.

History

A simple arithmetic calculator was first included with Windows 1.0. [5]

In Windows 3.0, a scientific mode was added, which included exponents and roots, logarithms, factorial-based functions, trigonometry (supports radian, degree and gradians angles), base conversions (2, 8, 10, 16), logic operations, statistical functions such as single variable statistics and linear regression.

Windows 9x and Windows NT 4.0

Until Windows 95, it uses an IEEE 754-1985 double-precision floating-point, and the highest representable number by the calculator is 21024, which is slightly above 10308 (~1.80 × 10308).

In Windows 98 and later, it uses an arbitrary-precision arithmetic library, replacing the standard IEEE floating point library. [6] It offers bignum precision for basic operations (addition, subtraction, multiplication, division) and 32 digits of precision for advanced operations (square root, transcendental functions). The largest value that can be represented on the Windows Calculator is currently <1010,000 and the smallest is 10−9,999. (Also ! calculates the gamma function which is defined over all real numbers, only excluding the negative integers).

Windows 2000, XP and Vista

In Windows 2000, digit grouping is added. Degree and base settings are added to menu bar.

The calculators of Windows XP and Vista were able to calculate using numbers beyond 1010000, but calculating with these numbers (e.g. 10^2^2^2^2^2^2^2...) does increasingly slow down the calculator and make it unresponsive until the calculation has been completed.

These are the last versions of Windows Calculator, where calculating with binary/decimal/hexadecimal/octal numbers is included into scientific mode. In Windows 7, they were moved to programmer mode, which is a new separate mode that co-exists with scientific mode.

Windows 7

In Windows 7, separate programmer, statistics, unit conversion, date calculation, and worksheets modes were added. Tooltips were removed. Furthermore, Calculator's interface was revamped for the first time since its introduction. The base conversion functions were moved to the programmer mode and statistics functions were moved to the statistics mode. Switching between modes does not preserve the current number, clearing it to 0.

The highest number is now limited to 1010000 again.

In every mode except programmer mode, one can see the history of calculations. The app was redesigned to accommodate multi-touch. Standard mode behaves as a simple checkbook calculator; entering the sequence 6 * 4 + 12 / 4 - 4 * 5 gives the answer 25. In scientific mode, order of operations is followed while doing calculations (multiplication and division are done before addition and subtraction), which means 6 * 4 + 12 / 4 - 4 * 5 = 7.

In programmer mode, inputting a number in decimal has a lower and upper limit, depending on the data type, and must always be an integer. Data type of number in decimal mode is signed n-bit [7] integer when converting from number in hexadecimal, octal, or binary mode.

Data typeData type sizeLower limitUpper limit
Byte8 bit128127
Word16 bit32,76832,767
Dword32 bit2,147,483,6482,147,483,647
Qword64 bit9,223,372,036,854,775,8089,223,372,036,854,775,807

On the right of the main Calculator, one can add a panel with date calculation, unit conversion and worksheets. Worksheets allow one to calculate a result of a chosen field based on the values of other fields. Pre-defined templates include calculating a car's fuel economy (mpg and L/100 km), [8] a vehicle lease, and a mortgage. In pre-beta versions of Windows 7, Calculator also provided a Wages template.

Windows 8.1

While the traditional Calculator is still included with Windows 8.1, a Metro-style Calculator is also present, featuring a full-screen interface as well as normal, scientific, and conversion modes. [9]

Windows 10

The Calculator in non-LTSC editions of Windows 10 is a Universal Windows Platform app. In contrast, Windows 10 LTSC (which does not include universal Windows apps) includes the traditional calculator, but which is now named win32calc.exe. Both calculators provide the features of the traditional calculator included with Windows 7 and Windows 8.x, such as unit conversions for volume, length, weight, temperature, energy, area, speed, time, power, data, pressure and angle, and the history list which the user can clear.

Both the universal Windows app and LTSC's win32calc.exe register themselves with the system as handlers of a 'calculator:' pseudo-protocol. This registration is similar to that performed by any other well-behaved application when it registers itself as a handler for a filetype (e.g. .jpg) or protocol (e.g. http:).

All Windows 10 editions (both LTSC and non-LTSC) continue to have a calc.exe, which however is just a stub that launches (via ShellExecute) the handler that is associated with the 'calculator:' pseudo-protocol. As with any other protocol or filetype, when there are multiple handlers to choose from, users are free to choose which handler they prefer either via the classic control panel ('Default programs' settings) or the immersive UI settings ('Default Apps' settings) or from the command prompt via OpenWith calculator:.

In the Windows 10 Fall Creators Update, a currency converter mode was added to Calculator. [10]

On 6 March 2019, Microsoft released the source code for Calculator on GitHub under the MIT License. [11]

Windows 11

In Windows 11, the Calculator app's user interface was modified to match the design of Windows 11 and a new settings page is present for users to toggle between the themes of the app without changing the operating system's theme. In 2021, Microsoft announced it would migrate the codebase of the Calculator app to C# in order to welcome more developers to contribute to the app.

Features

By default, Calculator runs in standard mode, which resembles a four-function calculator. More advanced functions are available in scientific mode, including logarithms, numerical base conversions, some logical operators, operator precedence, radian, degree and gradians support as well as simple single-variable statistical functions. It does not provide support for user-defined functions, complex numbers, storage variables for intermediate results (other than the classic accumulator memory of pocket calculators), automated polar-cartesian coordinates conversion, or support for two-variables statistics.

Calculator supports keyboard shortcuts; all Calculator features have an associated keyboard shortcut. [12]

Calculator in programmer mode cannot accept or display a number larger than a signed QWORD (16 hexadecimal digits/64 bits). The largest number it can handle is therefore 0x7FFFFFFFFFFFFFFF (decimal 9,223,372,036,854,775,807). Any calculations in programmer mode which exceed this limit will overflow, even if those calculations would succeed in other modes. In particular, scientific notation is not available in this mode.

Issues

Calculator Plus

Calculator Plus is a separate application for Windows XP and Windows Server 2003 users that adds a 'Conversion' mode over the Windows XP version of the Calculator. The 'Conversion' mode supports unit conversion and currency conversion. Currency exchange rates can be updated using the built-in update feature, which downloads exchange rates from the European Central Bank. [15] [16]

See also

Related Research Articles

In mathematics and computing, the hexadecimal numeral system is a positional numeral system that represents numbers using a radix (base) of sixteen. Unlike the decimal system representing numbers using ten symbols, hexadecimal uses sixteen distinct symbols, most often the symbols "0"–"9" to represent values 0 to 9, and "A"–"F" to represent values from ten to fifteen.

<span class="mw-page-title-main">Microsoft Excel</span> Spreadsheet editor, part of Microsoft 365

Microsoft Excel is a spreadsheet editor developed by Microsoft for Windows, macOS, Android, iOS and iPadOS. It features calculation or computation capabilities, graphing tools, pivot tables, and a macro programming language called Visual Basic for Applications (VBA). Excel forms part of the Microsoft 365 suite of software.

<span class="mw-page-title-main">Spreadsheet</span> Computer application for organization, analysis, and storage of data in tabular form

A spreadsheet is a computer application for computation, organization, analysis and storage of data in tabular form. Spreadsheets were developed as computerized analogs of paper accounting worksheets. The program operates on data entered in cells of a table. Each cell may contain either numeric or text data, or the results of formulas that automatically calculate and display a value based on the contents of other cells. The term spreadsheet may also refer to one such electronic document.

Scientific notation is a way of expressing numbers that are too large or too small to be conveniently written in decimal form, since to do so would require writing out an inconveniently long string of digits. It may be referred to as scientific form or standard index form, or standard form in the United Kingdom. This base ten notation is commonly used by scientists, mathematicians, and engineers, in part because it can simplify certain arithmetic operations. On scientific calculators, it is usually known as "SCI" display mode.

Significant figures, also referred to as significant digits or sig figs, are specific digits within a number written in positional notation that carry both reliability and necessity in conveying a particular quantity. When presenting the outcome of a measurement, if the number of digits exceeds what the measurement instrument can resolve, only the number of digits within the resolution's capability are dependable and therefore considered significant.

<span class="mw-page-title-main">Scientific calculator</span> Calculator designed to calculate problems in science, engineering, and mathematics

A scientific calculator is an electronic calculator, either desktop or handheld, designed to perform calculations using basic and complex mathematical operations and functions. They have completely replaced slide rules and are used in both educational and professional settings.

<span class="mw-page-title-main">HP-42S</span>

The HP-42S RPN Scientific is a programmable RPN Scientific hand held calculator introduced by Hewlett-Packard in 1988. It has advanced functions suitable for applications in mathematics, linear algebra, statistical analysis, computer science and others.

There are various ways in which calculators interpret keystrokes. These can be categorized into two main types:

<span class="mw-page-title-main">Casio fx-7000G</span> Graphing calculator by Casio

The Casio FX-7000G is a calculator which is widely known as being the world's first graphing calculator available to the public. It was introduced to the public and later manufactured between 1985 and c. 1988. Notable features are its ability to graph functions, and that it is programmable. The calculator offers 82 scientific functions and is capable of manual computation for basic arithmetic problems.

<span class="mw-page-title-main">Calculator (Apple)</span> Calculator application on Apple systems

Calculator is a basic calculator application made by Apple Inc. and bundled with its macOS, iOS, and watchOS operating systems. It has three modes: basic, scientific, and programmer. The basic mode includes a number pad, buttons for adding, subtracting, multiplying, and dividing, as well as memory keys. Scientific mode supports exponents and trigonometric functions. The macOS version of Calculator also has a programmer mode that gives the user access to more options related to computer programming.

ntoskrnl.exe, also known as the kernel image, contains the kernel and executive layers of the Microsoft Windows NT kernel, and is responsible for hardware abstraction, process handling, and memory management. In addition to the kernel and executive mentioned earlier, it contains the cache manager, security reference monitor, memory manager, scheduler (Dispatcher), and blue screen of death.

<span class="mw-page-title-main">HP-16C</span> Programmable calculator produce by Hewlett-Packard

The HP-16C Computer Scientist is a programmable pocket calculator that was produced by Hewlett-Packard between 1982 and 1989. It was specifically designed for use by computer programmers, to assist in debugging. It is a member of the HP Voyager series of programmable calculators. It was the only programmer's calculator ever produced by HP, though many later HP calculators have incorporated most of the 16C's functions.

Texas Instruments TI-36 is a series of scientific calculators distributed by Texas Instruments. It currently represents the high-end model for the TI-30 product lines.

The Microsoft Windows family of operating systems employ some specific exception handling mechanisms.

<span class="mw-page-title-main">Microsoft PowerToys</span> Set of freeware system utilities developed by Microsoft

Microsoft PowerToys is a set of freeware system utilities designed for power users developed by Microsoft for use on the Windows operating system. These programs add or change features to maximize productivity or add more customization. PowerToys are available for Windows 95, Windows XP, Windows 10 and Windows 11. The PowerToys for Windows 10 and Windows 11 are free and open-source software licensed under the MIT License and hosted on GitHub.

<span class="mw-page-title-main">HP 35s</span> Programmable scientific calculator produced by Hewlett-Packard

The HP 35s (F2215A) is a Hewlett-Packard non-graphing programmable scientific calculator. Although it is a successor to the HP 33s, it was introduced to commemorate the 35th anniversary of the HP-35, Hewlett-Packard's first pocket calculator. HP also released a limited production anniversary edition with shiny black overlay and engraving "Celebrating 35 years".

<span class="mw-page-title-main">Casio fx-3650P</span> Programmable scientific calculator produced by Casio

Casio fx-3650P is a programmable scientific calculator manufactured by Casio Computer Co., Ltd. It can store 12 digits for the mantissa and 2 digits for the exponent together with the expression each time when the "EXE" button is pressed. Also, the calculator can use the previous result to do calculations by pressing "Ans". It is one of the calculators approved by HKEAA to be used in public examinations in Hong Kong, such as HKDSE.

The TI-34 name is a branding used by Texas Instruments for its mid-range scientific calculators aimed at the educational market. The first TI-34 model was introduced in 1987 as a midpoint between the TI-30 series and the TI-35/TI-36 series. Earlier models included Boolean algebra features, though these were removed with the introduction of the TI-34II in 1999, which focuses more on fractional calculations and other subjects common in middle and high school math and science curricula.

<span class="mw-page-title-main">Software calculator</span> Calculator as a computer program

A software calculator is a calculator that has been implemented as a computer program, rather than as a physical hardware device.

References

  1. "Kraig Brockschmidt, Creator of Calc, on the Early Days at Microsoft | Seth Juarez | Channel 9". Archived from the original on 2020-09-23. Retrieved 2020-05-23.
  2. Fagioli, Brian (15 October 2020). "How to install Microsoft Windows Calculator on Linux". betanews. Retrieved 2020-10-16.
  3. "Windows Calculator will get a Graphing Mode: first look - gHacks Tech News". gHacks Technology News. 2020-01-17. Retrieved 2022-09-02.
  4. "Von Windows Phone 8.1 zu Windows 10 Mobile: Eine kleine Revolution in Screenshots" (in German). Dr.Windows. 27 October 2015. Retrieved 27 January 2024.
  5. Windows 1.01 - Graphical User Interface Gallery
  6. "The Old New Thing Blog: When you change the insides, nobody notices". Archived from the original on 2010-03-06. Retrieved 2007-05-28.
  7. Where n is either: 8 for Byte, 16 for Word, 32 for Dword, or 64 for Qword.
  8. Calculate Fuel Economy - Windows 7 (MalekTips)
  9. "Hands-On with Windows 8.1: New Utility Apps". Paul Thurrott's Supersite for Windows. Retrieved September 24, 2013.
  10. - Windows 10 Tip: Travel easier with the built-in currency converter
  11. Foley, Mary Jo (6 March 2019). "Microsoft is open-sourcing Windows Calculator on GitHub". ZDNet. Retrieved 6 March 2019.
  12. "Keyboard shortcuts". Windows 8 Help. Microsoft . Retrieved 11 March 2013.
  13. "Microsoft Fixes Decade-Old Windows Calculator Square Root Bug". news.softpedia.com. Retrieved 2023-04-15.
  14. "Wrong usage of Regional settings in Windows 10 Apps: weather, calculator". answers.microsoft.com. Retrieved 2021-01-24.
  15. "Microsoft Calculator Plus". Tek.no (in Norwegian). 13 September 2004.
  16. "Use this great maths tool for cheats! - 9Finance". finance.nine.com.au.