BigInteger type in C#
Forums:
BigInteger a = new BigInteger(long.MaxValue);
//a is 9223372036854775807
BigInteger b = new BigInteger(255);
BigInteger c = new BigInteger(1000);
a = BigInteger.Multiply(a, c);
//a is 9223372036854775807000
a = BigInteger.Divide(BigInteger.Add(a, c), b);
//a is 36170086419038336501
- Log in to post comments