Results 1 to 2 of 2
  1. #1
    JavaBean's Avatar
    JavaBean is offline Moderator
    Join Date
    May 2007
    Rep Power

    Default Big Fraction 1.00

    Big Fraction is a Java class that represents an immutable fraction, as held in a numerator and denominator. Calculations may be performed on this fraction, but the value is always held as a numerator/denominator pair. Therefore, no precision is lost. The fraction may be top-heavy, but is reduced when printed. The value can be converted into floats if desired, although precision will invariably be lost, and some large fractions (such as calculations for pi) can not be converted if the values of BigInteger exceed the range capable of floats.


    Initial Announcement.


  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Colombo, Sri Lanka
    Blog Entries
    Rep Power


    It's cool. In the past to do this, I deal with splitting the fraction by / sign and do the processing. To do that I have to deal with String patterns as well. It's too dull.

    Thanks JavaBean for the information. :)

Similar Threads

  1. Trouble getting Julia fraction correct.
    By yllawwally in forum New To Java
    Replies: 0
    Last Post: 12-21-2007, 03:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts