Remix.run Logo
criddell a day ago

Would a BigInteger sum still overflow?

Arnavion a day ago | parent [-]

It doesn't matter. Overflow is a non-issue as long as you have wrapping addition and subtraction operators, which C# does - regular `+` and `-` not inside `checked {}`. You don't need to reach for BigInteger.