Searched refs:asBigInteger (Results 1 - 4 of 4) sorted by relevance

/packages/apps/ExactCalculator/tests/src/com/android/calculator2/
H A DBRTest.java86 BigInteger big_x = BoundedRational.asBigInteger(x);
142 check(BoundedRational.asBigInteger(BR_390).intValue() == 390, "390.asBigInteger()");
143 check(BoundedRational.asBigInteger(BoundedRational.HALF) == null, "1/2.asBigInteger()");
144 check(BoundedRational.asBigInteger(BoundedRational.MINUS_HALF) == null,
145 "-1/2.asBigInteger()");
146 check(BoundedRational.asBigInteger(new BoundedRational(15, -5)).intValue() == -3,
147 "-15/5.asBigInteger()");
/packages/apps/ExactCalculator/src/com/android/calculator2/
H A DBoundedRational.java176 public static BigInteger asBigInteger(BoundedRational r) { method in class:BoundedRational
322 final BigInteger r_BI = asBigInteger(r);
359 final BigInteger r2_BI = asBigInteger(multiply(r, TWO));
402 final BigInteger r_BI = asBigInteger(r);
577 final BigInteger rAsInt = asBigInteger(r);
H A DEvaluator.java355 if (BoundedRational.asBigInteger(res.ratVal) == null
H A DCalculatorExpr.java962 BigInteger int_exp = BoundedRational.asBigInteger(exp.ratVal);

Completed in 69 milliseconds