Home
last modified time | relevance | path

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

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