Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ operator int()

static System.Numerics.BigInteger.operator int ( BigInteger value)
inlineexplicitstatic

Definition at line 1468 of file BigInteger.cs.

1469 {
1470 if (value._bits == null)
1471 {
1472 return value._sign;
1473 }
1474 if (value._bits.Length > 1)
1475 {
1476 throw new OverflowException(System.SR.Overflow_Int32);
1477 }
1478 if (value._sign > 0)
1479 {
1480 return checked((int)value._bits[0]);
1481 }
1482 if (value._bits[0] > 2147483648u)
1483 {
1484 throw new OverflowException(System.SR.Overflow_Int32);
1485 }
1486 return (int)(0 - value._bits[0]);
1487 }
static string Overflow_Int32
Definition SR.cs:1772
Definition SR.cs:7

References System.SR.Overflow_Int32, and System.value.