src/org/kocakosm/pitaya/math/Fraction.java
public Fraction reduced()
	{
		BigInteger gcd = n.gcd(d);
		if (d.signum() < 0) {
			BigInteger numerator = n.divide(gcd).negate();
			BigInteger denominator = d.divide(gcd).negate();
			return new Fraction(numerator, denominator);
		}
		return new Fraction(n.divide(gcd), d.divide(gcd));
	}
public Fraction reduced()
	{
		BigInteger gcd = n.gcd(d);
		if (d.signum() < 0) {
			BigInteger numerator = n.divide(gcd).negate();
			BigInteger denominator = d.divide(gcd).negate();
			return new Fraction(numerator, denominator);
		}
		return new Fraction(n.divide(gcd), d.divide(gcd));
	}
public Fraction reduced ( ) { BigInteger gcd = n . gcd ( d ) ; if ( d . signum ( ) < 0 ) { BigInteger numerator = n . divide ( gcd ) . negate ( ) ; BigInteger denominator = d . divide ( gcd ) . negate ( ) ; return new Fraction ( numerator , denominator ) ; } return new Fraction ( n . divide ( gcd ) , d . divide ( gcd ) ) ; }
Returns the reduced form of this {@code Fraction}. Also, note that
the sign information will be held by the numerator.

@return the reduced form of this {@code Fraction}.
Returns the reduced form of this { @code Fraction } . Also note that the sign information will be held by the numerator .