Home
last modified time | relevance | path

Searched refs:toBigInteger (Results 1 – 11 of 11) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigDecimalConvertTest.java232 BigInteger result = aNumber.toBigInteger(); in testToBigIntegerPos1()
243 BigInteger result = aNumber.toBigInteger(); in testToBigIntegerPos2()
254 BigInteger result = aNumber.toBigInteger(); in testToBigIntegerPos3()
265 BigInteger result = aNumber.toBigInteger(); in testToBigIntegerNeg1()
276 BigInteger result = aNumber.toBigInteger(); in testToBigIntegerNeg2()
287 BigInteger result = aNumber.toBigInteger(); in testToBigIntegerNeg3()
298 BigInteger result = aNumber.toBigInteger(); in testToBigIntegerZero()
DBigDecimalTest.java776 BigInteger result = sub1.toBigInteger(); in test_toBigInteger()
781 result = sub1.toBigInteger(); in test_toBigInteger()
785 result = sub1.toBigInteger(); in test_toBigInteger()
789 result = sub1.toBigInteger(); in test_toBigInteger()
/libcore/ojluni/src/main/java/java/math/
DSignedMutableBigInteger.java132 return this.toBigInteger(sign).toString(); in toString()
DBigInteger.java2386 return q.toBigInteger(this.signum * val.signum); in divideKnuth()
2444 result[0] = q.toBigInteger(this.signum == val.signum ? 1 : -1); in divideAndRemainderKnuth()
2445 result[1] = r.toBigInteger(this.signum); in divideAndRemainderKnuth()
2481 return a.divideKnuth(b, q).toBigInteger(this.signum); in remainderKnuth()
2671 return new MutableBigInteger(this.mag).sqrt().toBigInteger(); in sqrt()
2715 return result.toBigInteger(1); in gcd()
2955 result = t1.divide(new MutableBigInteger(m), q).toBigInteger(); in modPow()
3472 return result.toBigInteger(1);
4194 BigInteger q2 = q.toBigInteger(tmp.signum * d.signum);
4195 BigInteger r2 = r.toBigInteger(tmp.signum * d.signum);
DMutableBigInteger.java188 BigInteger toBigInteger(int sign) { in toBigInteger() method in MutableBigInteger
197 BigInteger toBigInteger() { in toBigInteger() method in MutableBigInteger
199 return toBigInteger(isZero() ? 0 : 1); in toBigInteger()
523 BigInteger b = toBigInteger(1); in toString()
716 return toBigInteger(1); in getLower()
1370 d = new MutableBigInteger(quotient.toBigInteger().multiply(b2)); in divide3n2n()
DBigDecimal.java3549 public BigInteger toBigInteger() {
3602 return toBigInteger().longValue();
4810 return mq.toBigInteger(qsign);
4845 BigInteger intVal = mq.toBigInteger(qsign);
4889 return mq.toBigInteger(qsign);
4923 BigInteger intVal = mq.toBigInteger(qsign);
5459 BigInteger intVal = mq.toBigInteger(sign); in divideAndRound128()
/libcore/ojluni/src/test/java/math/BigDecimal/
DIntegralValueTests.java246 return bd.toBigInteger().longValue(); in simpleLongValue()
250 return bd.toBigInteger().intValue(); in simpleIntValue()
DDivideTests.java75 … BigInteger divisorIntvalue = divisor.scaleByPowerOfTen(divisor.scale()).toBigInteger().abs(); in anotherDivide()
76 … BigInteger dividendIntvalue = dividend.scaleByPowerOfTen(dividend.scale()).toBigInteger().abs(); in anotherDivide()
/libcore/ojluni/src/test/java/math/BigInteger/
DBigIntegerTest.java304 sb.add((new BigDecimal(Double.MAX_VALUE)).toBigInteger()); in squareRoot()
305 sb.add((new BigDecimal(Double.MAX_VALUE)).toBigInteger().add(BigInteger.ONE)); in squareRoot()
318 … doubles.mapToObj(x -> BigDecimal.valueOf(x).toBigInteger()).map(f).collect(Collectors.toList()); in squareRoot()
/libcore/ojluni/src/main/java/jdk/internal/math/
DFDBigInteger.java1486 public BigInteger toBigInteger() { in toBigInteger() method in FDBigInteger
1506 return toBigInteger().toString(); in toString()
/libcore/api/
Dcurrent.txt5303 method public java.math.BigInteger toBigInteger();