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

◆ ToUInt32() [6/19]

static uint System.Convert.ToUInt32 ( double value)
inlinestatic

Definition at line 1576 of file Convert.cs.

1577 {
1578 if (value >= -0.5 && value < 4294967295.5)
1579 {
1580 uint num = (uint)value;
1581 double num2 = value - (double)num;
1582 if (num2 > 0.5 || (num2 == 0.5 && (num & (true ? 1u : 0u)) != 0))
1583 {
1584 num++;
1585 }
1586 return num;
1587 }
1588 throw new OverflowException(SR.Overflow_UInt32);
1589 }

References System.SR.Overflow_UInt32, and System.value.