![]() 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. 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. Calculator's mathematics library is built using rational numbers (that is, numbers that can be expressed as the ratio of two integers). ![]() The actual calculations are performed by this ancient code. 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 repository shows Calculator's surprisingly long history. 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.
0 Comments
Leave a Reply. |