Fraction is a Number implementation that stores fractions accurately.
This class is immutable, and interoperable with most methods that accept a Number.
Note that this class is intended for common use cases, it is int based and thus suffers from various overflow issues. For a BigInteger based equivalent, please see the Commons Math BigFraction class.
@since 2.0 @version $Id: Fraction.java 1088899 2011-04-05 05:31:27Z bayard $ | |
| |
| |
| |
| |
| |
| |
| |
| |
| |