C# BigInt, BigFloat library - a free arbitrary precision library for C#In the course of writing a calculator app, I needed an arbitrary precision maths library for C#. To my surprise, I could not find one online, that was available for free, so I wrote one. I am making this code available, free of charge, for any use, provided that all credits remain in the source files (however edited) and that all substantial changes are sent back to me at adam_a_brown^@hotmail.com (remove the ^). Important: Please link to this page from your site if you make use of the library
Download the source code (windows project) from here
Update: Version 1.2 (20-03-2011)
Update: Version 1.1 (12-12-2010)
Important notes:
High-precision windows calculatorThis is a high-precision windows calculator, which uses the BigInt and BigFloat library from above. The source code demonstrates some of the use of the BigInt library. In particular, this calculator maintains 250 decimal digits of precision in addition to what is displayed. This, combined with correct rounding, allows the calculator to do effectively exact calculations in many cases. Note: To run this program, you will need the .net framework 3.5 installed. It is provided as is, without any warranty express or implied etc... You are free to use it, but I accept no liability for its use.
Download the source code (windows project) from here
XSLT style sheet for visual studio documentationIn order to document the source code, I wrote a very basic XSLT style sheet to display the XML data from the XML comment feature in a hierarchical manner. This scores over other free style sheets in three important ways:
Download the XSLT style sheet here Note that this is my first time experimenting with XSLT, so there are some things it doesn't do, and what it does do is not done in an ideal way. You may therefore find it difficult to modify. 20000 decimal digits of pi (plus the 3.)These can be viewed here 20000 decimal digits of e (plus the 2.)These can be viewed here |