Home | History | Annotate | Download | only in math

Lines Matching refs:BigInteger

19 import java.math.BigInteger;
24 BigInteger firstBig = new BigInteger("30003543667898318853");
25 BigInteger secondBig = new BigInteger("3298535022597");
26 BigInteger andedBigs = firstBig.and(secondBig);
27 BigInteger toCompareBig = BigInteger.valueOf(andedBigs.longValue());
32 // http://b/2981072 - off-by-one error in BigInteger.valueOf
37 assertEquals(i, BigInteger.valueOf(i).intValue());
44 new BigInteger("1", 10);
45 new BigInteger("1a", 16);
46 new BigInteger("-1", 10);
47 new BigInteger("-1a", 16);
48 new BigInteger("\u0661", 10);
49 new BigInteger("\u0661a", 16);
50 new BigInteger("-\u0661", 10);
51 new BigInteger("-\u0661a", 16);
53 new BigInteger("+1");
56 new BigInteger("-a"); // no digits from other bases.
61 new BigInteger("-1a"); // no trailing digits from other bases.
66 new BigInteger("-1 hello"); // no trailing junk at all.
71 new BigInteger("--1"); // only one sign.
76 new BigInteger(""); // at least one digit.
81 new BigInteger("-"); // at least one digit, even after a sign.