I\'m looking for a Java library which represents fractions (rational numbers). For example, if I want to store the fraction 1/3 then it will not be saved as
1/3
I'm not sure how commonly used it is, but the apfloat packages (Java and C++) contain a class for rational arithmetic.