159160161162163164165
/** * @see BigFraction#BigFraction(double, int) */ public Rational(double value, int maxDenominator) throws FractionConversionException { fraction = new BigFraction(value, maxDenominator); }
166167168169170171172
/** * @see BigFraction#BigFraction(int) */ public Rational(int num) { fraction = new BigFraction(num); }
173174175176177178179
/** * @see BigFraction#BigFraction(int, int) */ public Rational(int num, int den) { fraction = new BigFraction(num, den); }
180181182183184185186
/** * @see BigFraction#BigFraction(long) */ public Rational(long num) { fraction = new BigFraction(num); }
187188189190191192193
/** * @see BigFraction#BigFraction(long, long) */ public Rational(long num, long den) { fraction = new BigFraction(num, den); }
129130131132133134135
/** * @see BigFraction#BigFraction(java.math.BigInteger) */ public Rational(BigInteger num) { checkNotNull(num); fraction = new BigFraction(num); }
138139140141142143144
* @see BigFraction#BigFraction(java.math.BigInteger, java.math.BigInteger) */ public Rational(BigInteger num, BigInteger den) { checkNotNull(num); checkNotNull(den); fraction = new BigFraction(num, den); }
145146147148149150151
/** * @see BigFraction#BigFraction(double) */ public Rational(double value) throws MathIllegalArgumentException { fraction = new BigFraction(value); }
152153154155156157158
/** * @see BigFraction#BigFraction(double, double, int) */ public Rational(double value, double epsilon, int maxIterations) throws FractionConversionException { fraction = new BigFraction(value, epsilon, maxIterations); }