부호 있는 임의의 큰 정수
방법 1
new
를 이용한 객체 생성
BigInteger big1 = new BigInteger(byteArray);
방법 2
Parse
나 TryParse
를 사용한 객체 생성
BigInteger pos_big1 = BigInteger.Parse(positiveString);
BigInteger neg_big1 = BigInteger.Parse(negativeString);
방법3
어떤 작업으로 계산을 수행한 결과 반환
BigInteger big1 = BigInteger.Pow();
add()
subtract()
multiply()
divide()
mod()
BigInteger A = new BigInteger("11111111111111");
BigInteger B = new BigInteger("22222222222222");
BigInteger add = A.add(B);
BigInteger subtract = A.subtact(B);