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

◆ operator decimal()

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

Definition at line 1573 of file BigInteger.cs.

1574 {
1575 if (value._bits == null)
1576 {
1577 return value._sign;
1578 }
1579 int num = value._bits.Length;
1580 if (num > 3)
1581 {
1582 throw new OverflowException(System.SR.Overflow_Decimal);
1583 }
1584 int lo = 0;
1585 int mid = 0;
1586 int hi = 0;
1587 if (num > 2)
1588 {
1589 hi = (int)value._bits[2];
1590 }
1591 if (num > 1)
1592 {
1593 mid = (int)value._bits[1];
1594 }
1595 if (num > 0)
1596 {
1597 lo = (int)value._bits[0];
1598 }
1599 return new decimal(lo, mid, hi, value._sign < 0, 0);
1600 }
static string Overflow_Decimal
Definition SR.cs:1766
Definition SR.cs:7

References System.SR.Overflow_Decimal, and System.value.