non/spire — pull request #13 by tixxit (2012-03-30 15:43:55+00:00)
Title: Add limiting methods to Rational and some more Rational benchmarking.

This includes the fixes to the BigIntRational signum, a new LongRational type in benchmark, and the adjusted RationalBenchmarks to accomodate the new type.

It also includes some new limiting functions to Rational. These can be used to force a Rational's numerator and/or denominator to be below some specified magnitude. For instance, you can now get a Rational whose numerator and denominator are guaranteed to fit in a Long by using someRational.limitToLong.