Uploaded image for project: 'Commons Numbers'
  1. Commons Numbers
  2. NUMBERS-79

Convert fraction addition from BigInteger-based to long-based

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0-beta1
    • fraction
    • None

    Description

      Current Fraction class uses BigInteger due to the fact that in extreme cases adding and subtraction of fractions can require 65 bits of precision. However this is very costly in terms of performance for all but the most extreme cases. This ticket proposes using long-based arithmetic for Fraction addition and subtraction, and recommending BigFraction if the operation may run very large.

      Attachments

        Activity

          People

            ericbarnhill Eric Barnhill
            ericbarnhill Eric Barnhill
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: