Skip to content
Ciaran O'Reilly edited this page Jun 3, 2015 · 3 revisions

Math

Two general purpose Number types are available:

  1. Mixed Radix Number: This class allows for the representation of Mixed Radix Numbers. Combined with other utilities this can provide a nice mechanism for enumerating over collections of objects.
  2. Rational: Implements dynamically sized arbitrary precision immutable rational numbers. Allows for exact calculations with all the operations add/subtract/multiply/divide. This code is a minor modification to the freely available BigRational.java code developed by Eric Laroche.