https://arstechnica.com/gadgets/2019/03/calc-exe-is-now-open-source-theres-surprising-depth-in-its-ancient-code/ Skip to main content * Biz & IT * Tech * Science * Policy * Cars * Gaming & Culture * Store * Forums Subscribe [ ] Close Navigate * Store * Subscribe * Videos * Features * Reviews * RSS Feeds * Mobile Site * About Ars * Staff Directory * Contact Us * Advertise with Ars * Reprints Filter by topic * Biz & IT * Tech * Science * Policy * Cars * Gaming & Culture * Store * Forums Settings Front page layout Grid List Site theme Black on white White on black Sign in Comment activity Sign up or login to join the discussions! [ ] [ ] [Submit] [ ] Stay logged in | Having trouble? Sign up to comment and more Sign up How to make your system unhackable: delete calc.exe -- calc.exe is now open source; there's surprising depth in its ancient code The actual calculation engine is more than 20 years old. Ars Staff - Mar 7, 2019 5:03 pm UTC calc.exe is now open source; there's surprising depth in its ancient code Enlarge jakeandlindsay reader comments 212 with 136 posters participating Share this story * Share on Facebook * Share on Twitter * Share on Reddit Microsoft's embrace and adoption of open source software has continued with the surprising decision to publish the code for Windows Calculator and release it on GitHub under the permissive MIT license. The repository shows Calculator's surprisingly long history. Although it is in some regards one of the most modern Windows applications--it's an early adopter of Fluent Design and has been used to showcase a number of design elements--core parts of the codebase date all the way back to 1995. The actual calculations are performed by this ancient code. Calculator's mathematics library is built using rational numbers (that is, numbers that can be expressed as the ratio of two integers). Where possible, it preserves the exact values of the numbers it is computing, falling back on Taylor series expansion when an approximation to an irrational number is required. Poking around the change history shows that the very earliest iterations of Windows Calculator, starting in 1989, didn't use the rational arithmetic library, instead using floating point arithmetic and the much greater loss of precision this implies. The project also includes a roadmap for future development. Microsoft wants to continue to iterate on Calculator's use of Fluent Design, develop a more complete set of tests, and then add new features as requested by users. A few bugs and feature requests have already been filed, and Microsoft has already merged a number of outside contributions to fix some minor coding errors. reader comments 212 with 136 posters participating Share this story * Share on Facebook * Share on Twitter * Share on Reddit Advertisement You must login or create an account to comment. Channel Ars Technica - Previous story Next story - Related Stories Sponsored Stories Powered by Today on Ars * Store * Subscribe * About Us * RSS Feeds * View Mobile Site * Contact Us * Staff * Advertise with us * Reprints Newsletter Signup Join the Ars Orbital Transmission mailing list to get weekly updates delivered to your inbox. Sign me up - CNMN Collection WIRED Media Group (c) 2021 Conde Nast. All rights reserved. Use of and/or registration on any portion of this site constitutes acceptance of our User Agreement (updated 1/1/20) and Privacy Policy and Cookie Statement (updated 1/1 /20) and Ars Technica Addendum (effective 8/21/2018). Ars may earn compensation on sales from links on this site. Read our affiliate link policy. Your California Privacy Rights | Do Not Sell My Personal Information The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of Conde Nast. Ad Choices