BigRational

Rating:        Based on 1 rating
Reviewed:  1 review
Downloads: 1100
Released: Mar 30, 2010
Updated: Mar 30, 2010 by melitta
Dev status: Beta Help Icon

Recommended Download

Source Code BigRational.zip
source code, 96K, uploaded Mar 30, 2010 - 1100 downloads

Release Notes

BigRational builds on the BigInteger introduced in .NET Framework 4 to create an arbitrary-precision rational number type. A rational number is a ratio between two integers, and in this implementation BigIntegers are used for the numerator and denominator.

BigRational.zip contains two solutions: one for the BigRational library and one for a sample command-line application that reads two rationals and an operator and then prints the result.

Documentation for BigRational can be found under the documentation tab or on this documentation page.

The changeset that contains this release is 49321.

Reviews for this release

     
Thank you so much for providing this class. I'm writing an RPN Calculator in Silverlight 4, and this class allowed me to easily support a rational number data type. I'd love to see it added to the BCL. FWIW, to get it to compile in SL4, I just had to put #if !SILVERLIGHT directives around the serialization code.
by BillMenees on Aug 28, 2010 at 5:16 PM