BigInt implementation ported from old C code
- Addition
- Subtraction
- Multiplication
- Division
- Modulo
var number = new BigInt(1234);
Or
BigInt number = 1234;
Same with strings:
BigInt number = "-123456789";
var result = new BigInteger("123456789") + 123456L;
result += "999999";
var result = new BigInteger("123456789") - 123456L;
result -= "999999";
var result = new BigInteger("123456789") * 123456L;
result *= "999999";
var result = new BigInteger("123456789") / 123456L;
result /= "2";
var result = new BigInteger("123456789") % 123456L;
result %= "2";
var result = new BigInteger("123456789").CompareTo("12345676");